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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 DTS

Author  Topic 

JeffT
Posting Yak Master

111 Posts

Posted - 2006-07-06 : 12:21:19
Hi
I'm using the DTS Import/Export Wizard for the first time copying data from one SQL server database to another using a query. I want to copy data from one table in the production database (called "file_status") to one in the test database (called "temp_file_status").

So far I'm not seeing where you specify the "copy to" information and I want to make sure I copy only to the "temp_file_status" table. Anyone know where I can specify the "to" info ?
Thanks,
Jeff

nr
SQLTeam MVY

12543 Posts

Posted - 2006-07-06 : 12:36:09
After you specify the query the next screen gives the source and destination.
The source is probably Query and you can select or type in a destination.


==========================================
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.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-07-06 : 13:00:28
SELECT * INTO db2.temp_file_status FROM db1.file_status

Why use DTS?

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page

JeffT
Posting Yak Master

111 Posts

Posted - 2006-07-06 : 13:53:25
Thanks very much 'nr' and Brett ! BTW, I should have indicated that the prod and test databases are each on separate servers.

Jeff
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-07-06 : 14:07:22
No problem...personally I would bcp the data out in native format and bcp it in to the other table

But that's just me



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page
   

- Advertisement -