SCOPE_IDENTITY()
SELECT SCOPE_IDENTITY() AS
[SCOPE_IDENTITY];
GO
GO
https://msdn.microsoft.com/en-us/library/ms190315.aspx
SELECT @Variable = SCOPE_IDENTITY()
SELECT @Variable = SCOPE_IDENTITY()
I have been a SQL Server DBA for 25 years. These are some odds & ends that I have found useful. You can reach me at Barry.OConnell@Yahoo.com
0 Comments:
Post a Comment
<< Home