Getting the value of a primary key that is an Identity field
Database
2
Posts
2
Posters
0
Views
1
Watching
-
I am creating a new record in the database. The key is an identity field and the database is set to not allow inserts of assigned values. I need to return the results of the INSERT to the user. Is there anything I can do in my SQL that will let me return that key value? Is there something like a @PrimaryKey? Thanks
-
I am creating a new record in the database. The key is an identity field and the database is set to not allow inserts of assigned values. I need to return the results of the INSERT to the user. Is there anything I can do in my SQL that will let me return that key value? Is there something like a @PrimaryKey? Thanks