Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2001-06-18 : 09:24:57
|
Kathy writes "Can you show me a good example of a stored procedure which is inserting records in table (a) with a auto number, then calling another stored procedure to insert table (b), then calling another stored procedure to insert table (c). They all have a Record number key field which is the auto number in table a. I have read several books and none of them really addresses this issue of inserting multiple tables at once. My other problem is I am using an ASP page to do this in VBScript to call in my parameters from the stored procedure. When I use the request("recordnumber") to obtain the value for the record number in my second and third tables I am inserting, it fails because there is no number in the text box to receive the value from, because of the auto number. I have set the recordnumber=@@identity in my stored procedure, but this is not working. Please help!!!!!
Kathy Schmid" |
|
|
|
|
|