|
-
May 16th, 2008, 10:36 AM
#1
Thread Starter
Addicted Member
Getting rowId of recently inserted row
Hi,
I have 2 SQL tables, and a user web form (aspx.net page) that when it gets filled out, it makes inserts into those 2 tables.
Example of table design...
Table 1
RowId, Name, LastName
Table 2
RowId, Comments
The problem is that after I make the first insert into Table1, I need to somehow get the row id of that row and use it in my second insert so I can link them.
Is there a way to do this in SQL?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|