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 - 2002-12-03 : 07:25:16
|
| Jyotsna writes "I have a DB1 which has some temporary tables filled with data. I have to copy these records from the temporary tables in DB1 to a set of tables in DB2. How do i do this? How do I access another database and its tables? I have to copy only selected tables data from DB1 to DB2, not all tables. Can I use DTS for this? How? Please help. Its urgent." |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2002-12-03 : 07:43:42
|
| You could use dts butinsert db2..tbl select * from db1..tblshould work too.You should specify the columns in the insert statement.If the tables don't exist script the ones from db1 and run the script in db2.==========================================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. |
 |
|
|
|
|
|