•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 427,420 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,497 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 5112 | Replies: 7
•
•
Join Date: Jan 2008
Location: Largo Florida
Posts: 275
Reputation:
Rep Power: 1
Solved Threads: 23
Copy a table from one database to another database in another ms sql server using ..
#1
Mar 11th, 2008
Copy a table from one database to another database in another ms sql server using sql server management studio :
If your table was in the same ms sql server but in another database, you would copy it using t-sql like this :
SELECT * INTO NewTable FROM existingdb.dbo.existingtable;
However, if your database is in another ms sql server, you can do this :
Connect to your database using management studio. Right click on your table and select Script Table As > Create To > New Query Editor Window
Connect to the other database you want the table to be copied, create a new query and paste the sql previously generated. Run the query and you are done!
If your table was in the same ms sql server but in another database, you would copy it using t-sql like this :
SELECT * INTO NewTable FROM existingdb.dbo.existingtable;
However, if your database is in another ms sql server, you can do this :
Connect to your database using management studio. Right click on your table and select Script Table As > Create To > New Query Editor Window
Connect to the other database you want the table to be copied, create a new query and paste the sql previously generated. Run the query and you are done!
Serkan Şendur
MCAD.NET
MCAD.NET
•
•
•
•
•
•
•
•
DaniWeb MS SQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax amd asp avatar backup blue gene business chips copy crash daniweb database design developer development dos economy energy enterprise google hacker hardware ibm intel ibm internet linux medicine memory microsoft msdn news normalization office pc ps3 recession red hat russia security server smtp software sql supercomputer supercomputing survey vista windows working x86
- Access database, (MS Access and FileMaker Pro)
- mysql_fetch_array(): supplied argument is not a valid MySQL (PHP)
- Moving database to new server (MySQL)
- Rundll32 problem (Viruses, Spyware and other Nasties)
- How can i retrieve data after i logod on..... (ASP.NET)
Other Threads in the MS SQL Forum
- Previous Thread: Credit Voucher System With Expiry Periods
- Next Thread: sql - how to



Threaded Mode