SELECT @@IDENTITY should work for SqlServer.

Fred

On Mon, Dec 7, 2015 at 8: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/cajcbksp0ere6i5af3354tjnnzstjo-sd5gxkmtjmgde8hjf...@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.

Reply via email to