Stored procedure that returns @@Identity or scope_identity http://www.sqlteam.com/article/using-the-output-clause-to-capture-identity-values-on-multi-row-inserts
On Mon, Dec 7, 2015 at 9:49 PM, Kent Belan <[email protected]> wrote: > Hello, > > I am inserting records into an SQL table and I need to find out what is the > Primary Key for the record I just inserted. > > GetAutoIncValue() works great for a DBF but not so much for SQL ... > > What is the trick to get the PK from an SQL insert ? > > Thanks, > Kent > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cajidmylxuuwkldh-kz_w9bpgy9kgjbqeteu8h3vg6mybink...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

