Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

get last inserted primary key

INSERT INTO dbo.Table(columns)
OUTPUT INSERTED.p_key, INSERTED.someothercolumnhere .......
VALUES(...) 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #inserted #primary #key
ADD COMMENT
Topic
Name
4+7 =