Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

c# tableadapter - get identity on insert - SQL Server CE Expand / Collapse
Author
Message
Posted Monday, March 21, 2011 6:03 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, April 02, 2011 7:47 AM
Points: 1, Visits: 8
Hi All
I'm trying to get the identity of an inserted record from a table in SQL Server CE using a table adapter , but not able to. I tested the same in SQL Server - no problem. Can anyone help? I'm programming in C#.

Thanks!
Post #1081690
Posted Wednesday, April 27, 2011 5:28 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, April 27, 2011 5:51 AM
Points: 1, Visits: 2
Hi.. i think for that You need to use
SCOPE_IDENTITY()
@@IDENTITY in sql server 2005.
Post #1099332
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse