Skip to main content
This topic has been closed for replies.

3 replies

nikos101
nikos101Author
Inspiring
April 14, 2009

Thanks everyone

Inspiring
April 12, 2009

If they are on the same server, and you want the data to always be the same on both db's, rather than copying, you can just use the original table for the other database.

If it's a one time copy, ask your dba to back up the table to the new db.   That's what we do with both mssql and oracle.

Participating Frequently
April 10, 2009

This is OK, you have one more solution as well.

Create SQL script of the table on db1 and run on db2. It will create the same table schema on db2.

To copy date, we can use this,

SELECT * INTO db1.dbo.tablename FROM db2.dbo.tablename

Thanks

Sankalan

Mindfire Solutions

Known Participant
April 10, 2009

Free downloads of database manipulation utilities make me a bit nervous personally.

Definitely recommend the Select into as described above. A bit more info:

http://msdn.microsoft.com/en-us/library/ms190750.aspx

http://msdn.microsoft.com/en-us/library/ms188029.aspx