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
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 DTS when Column List changes

Author  Topic 

Kristen
Test

22859 Posts

Posted - 2004-07-21 : 16:05:24
I know diddly squat about DTS, so I'd appreciate some help.

I have a client who is transferring a table from ServerA to ServerB overnight.

The table is part of a development project and is subject to quite frequent changes of structure.

Is there some way to get DTS to do the equivalent of a SELECT * INTO MyTable so that any newly added columns are copied too? rather than having to re-make the Package each time?

Thanks

Kristen

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-07-21 : 16:37:29
Not really, but then why can't you use

DROP TABLE ServerB.DBName.dbo.TableName

SELECT *
INTO ServerB.DBName.dbo.TableName
FROM DBName.dbo.TableName (this would be run on ServerA)

?

Tara
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2004-07-21 : 18:57:56
That'll do the trick, thanks Tara.

Kristen
Go to Top of Page
   

- Advertisement -