[Tuesday, December 07, 2010]
Here's a really simple way to copy a table from database to another. I often get the syntax slightly wrong and have to look it up so here it is. Of course I'll probably never need to look it up again now that I've written it down!
Important: this doesn't copy indexes, keys, etcetera so don't forget about those.
SELECT * INTO DestinationDB.dbo.tblTable1 FROM SourceDB.dbo.tblTable1
Posted by: Benjamin Felt
