I use a stored procedure to insert data into a database, when it is inserted, it is automatically assigned an identifier, which is an identifier, as well as the main key of the table. I also need to insert data into a second table, of which this identifier is one of the columns that need to be inserted. But it has not been created yet, so I was wondering how you guys will solve this problem. I need this when they submit my form, which inserts the user, and then I need to add it to the table, which will basically document the user being created. Is it possible.? I am using Microsoft SQL Server 2005.
thanks
source share