Get unique Id every time when entering a record in sql server 2000 with asp.net

ashishashish

Newcomer
Joined
Sep 10, 2008
Messages
2
Hi i made a form in which user insert its details ,,,,
so i need that every time user fill that form it assigns a Unique Id to that user for use....
can anybody help me in this,,,:confused:
 
C#:
System.Guid.NewGuid();
or remove the; for VB.

Although in SQL Server if you do an insert it should automatically give you an ID if you set a primary key.
 
Back
Top