Hi All,
Please someone help to insert data into the database.
In my code I've written a function for data insertion.
Now this function must return some value so I'm stating it as:
int var=sqlcmd.ExecuteNonQuery();
and then closing the connection.
But the above statement throws the exception as it is unable to convert String variable to Guid even though I'm not using Guid anywhere all through my code.
Thanking you in anticipation.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.