i have a primary key set up to auto increment.
i am doing multiple queries and i need to retrieve that primary key to use as a foreign key in another table (is identity = true)
is there any elegant way to get back the primary key when i do an insert query. right now i am requerying and getting the highest value in that column which seems really hacky.
any suggestions?