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 - 2007-02-01 : 11:11:32
|
srinivas writes "can we insert the data into two different table at a time using one insert statement or can we insert data into different database tables using one insert statement" |
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2007-02-01 : 12:44:46
|
No - has to be two statements (one can be in a trigger though).You can enclose them in a transaction so that if one fails they both fail.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
|
|
|
|
|