Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope_identity()
Message
From
09/10/2003 22:40:41
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Scope_identity()
Miscellaneous
Thread ID:
00837243
Message ID:
00837243
Views:
51
Hi Guys,

We were planning to migrate our applications into C#. We are very much concern on how to get the newly autoincrement value from the datasource. Our main concern lies in Datatables wherein there is a parent and a child relation. Is it possible to use the autoincrement as the Primary and Foreign key for the Parent and child table respectively? If there are more than one concurrent users accessing the Datasource, how would the system know whether it got the right autoincrement number. We are looking at SCOPE_IDENTITY() to get the newly generated autoincrement. How does it work?

Thanks...
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Next
Reply
Map
View

Click here to load this message in the networking platform