Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
How to get scope_identity for a remote insert
Miscellaneous
Thread ID:
01322722
Message ID:
01322722
Views:
49
can you tell me why my Scope_identity for a remote inser is a null?
how can I fix this?
insert into RemoteServer.MyDB.dbo.Customers(....) values(....)
print 'SCOPE_IDENTITY()=' + convert(char,isnull(SCOPE_IDENTITY(),0))
Next
Reply
Map
View