otherside
Well-known member
Hello guys,
Ive had this problem before with Access databases and i never bothered to solve because there isnt a real solution with Access databases. Now im using SQL server and i know that it can be done but i dont know how.
I have a table with one autonumer column for indexing (identity). When i execute the INSERT command i need to get back the number that was assigned. Keep in mind that this is a fast multiuser database (can be 100 inserts/minute) so a SELECT MAX() thing would never work.
Im not familiar with stored procedures etc. If someone could supply me with an example of how this is done through a VB.NET application it would be great.
Thanks
Ive had this problem before with Access databases and i never bothered to solve because there isnt a real solution with Access databases. Now im using SQL server and i know that it can be done but i dont know how.
I have a table with one autonumer column for indexing (identity). When i execute the INSERT command i need to get back the number that was assigned. Keep in mind that this is a fast multiuser database (can be 100 inserts/minute) so a SELECT MAX() thing would never work.
Im not familiar with stored procedures etc. If someone could supply me with an example of how this is done through a VB.NET application it would be great.
Thanks