Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server CE / March 2008

Tip: Looking for answers? Try searching our database.

retrieving identity upon insert using a strongly typed data set

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Serge Wautier - 14 Mar 2008 22:54 GMT
Env.: SqlCE 3.5, Windows Mobile 6

Hi All,

I use .xsd based strongly typed data sets to access my DB.
Is it possible to retrieve @@identity from an Insert method?

TIA,

Serge.
William Vaughn - 17 Mar 2008 17:51 GMT
Not with SQLCe. It can only process one operation at a time. It is possible
to use SELECT @IDENTITY post-INSERT however.  Perhaps that's what you meant
in the first place...

Signature

__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205  (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________

> Env.: SqlCE 3.5, Windows Mobile 6
>
[quoted text clipped - 6 lines]
>
> Serge.
Serge Wautier - 19 Mar 2008 17:10 GMT
William,

Thanks for your reply.

> Not with SQLCe. It can only process one operation at a time. It is
> possible to use SELECT @IDENTITY post-INSERT however.  Perhaps that's what
[quoted text clipped - 10 lines]
>>
>> Serge.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.