how to insert uniqueidentifier datatype value using c# code.

Posted by Jitendrasoft09 under C# on 3/27/2013 | Points: 10 | Views : 3793 | Status : [Member] [MVP] | Replies : 2
Suppose I have one table which contains the unique-identifier datatype and wants to insert the value on that datatype using c sharp code.

Jitendra Kumar
If my post helps you, plz mark as an answer.



Responses

Posted by: Jayakumars on: 3/27/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
refer this

http://msdn.microsoft.com/en-IN/library/ms190215(v=sql.105).aspx

Mark as Answer if its helpful to you

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raj.Trivedi on: 3/27/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hello Jitendra you can do the following way.

On the Submit button create a GUID variable i.e. Global Unique Identifier

GUID EMPID = GUID.NEWGUID()

and then you can pass the EMPID to the database

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response