I'm trying to identify the ID of the column I just inserted in my MSSQL table. I've learned that I need to use SCOPE_IDENTITY function. The MSSQL server forums tell me how to use this in a stored procedure.
I would like to use it at the end of my insert query. I just can't find the proper syntax to do it.
Any ideas?
I would like to use it at the end of my insert query. I just can't find the proper syntax to do it.
Any ideas?