Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Identity after Insert
Message
From
16/09/2005 13:33:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/09/2005 13:29:43
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
ASP.NET
Database:
MS SQL Server
Miscellaneous
Thread ID:
01050383
Message ID:
01050404
Views:
14
>>>I have an application in Asp.Net that writes to a SQL Server table. This SQL Server table has an Identity column.
>>>
>>>How can I return the value of the Identity column after performing an Insert into the table?
>>>
>>>Thanks,
>>>
>>>Jerry
>>
>>Jerry,
>>You would request SCOPE_IDENTITY back. Instead I suggest you to use GUID as unique IDs. You don't need to request back then because you know them before inserting.
>>Cetin
>
>I second that! To go even further try this!
>
>http://www.informit.com/articles/article.asp?p=25862&rl=1

Hey, that question in turn helped me to find the article link that I lost long ago:) Thanks Mike.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform