Help for this page
Select Code to Download
Select
or
download this
SELECT SCOPE_IDENTITY();
Select
or
download this
SELECT CAST(scope_identity() AS int)