Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

I need to copy tables to other database in mssql

Enthusiast ,
Apr 03, 2009 Apr 03, 2009
I need to copy tables to other database in mssql

I'm using

Microsoft SQL Server Management Studio 9.00.3042.00

Do you think the following is any good or do you recommend another.

http://www.sharewareconnection.com/copy-table-for-sql-server.htm
TOPICS
Database access
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 10, 2009 Apr 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 10, 2009 Apr 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 12, 2009 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 14, 2009 Apr 14, 2009
LATEST

Thanks everyone

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources