T-SQL for different databases on same server
I was trying to figure out if I can create an .sql file that uses different databases on the same server and run it in Query Analyzer.
For instance, I have two database, A and B.
The way I have to do it now is via DTS and export data from A to B.
I was trying something like the following, but couldn't get it to work:
Select * INTO B.dbo.Table from A.dbo.Table
Am I stuck using DTS for situations like this?
[458 byte] By [
bubberz] at [2007-11-11 10:02:06]

# 1 Re: T-SQL for different databases on same server
You're on the right track... You don't have to use DTS.
Here's a post which talks about something similar:
http://www.thescripts.com/forum/thread81263.html