Returning The Value Of A Generated Key On Insert In MSSQL(blogs.ittoolbox.com)
submitted by
alexexmachina(1020) 4 years, 9 months ago
I wanted to use GUIDs for a specific table's primary key, but I had no intention of running two queries just so I could get the newly created row's GUID. Here's a great way to get data created within a stored procedure back to the code that called it.
|category: Database
|Views: 3
tags:
PrimaryKey Identity GUID Database SQLServer another
Everyones tags:
Your Tags: