How can transfer data from one database to another database
SELECT * INTO dbo.DB1.TempTable FROM dbo.DB2.TempTable how can set dbo.DB2 user id & Password to access data
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Apr 4, 2015, 1:30 AM EDT
Writing your own code would not be a good idea. It would also take a lot of time, and might cause other errors and data loss.
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 4, 2015, 2:19 AM EDT
Najim MullaRank #2,088 · 689 reputationPosted Apr 4, 2015, 2:50 AM EDT
Mohan Kate-Patil10 reputationPosted Apr 4, 2015, 3:00 AM EDT
There are many ways are available to transfer data from one database to other Database.
1. But depends on which database you used.
2. You are try in Database directly or Use it in application Code Behind file.
Please Mention your details more brief solution for you
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 4, 2015, 3:00 AM EDT
as in below image
Next
Next
if you want all tables data
Next
Click on advance
And choose Data only if you have already created tables otherwise choose scheme and data
below image
check path to save srcipt then ok and next
succes messge
finish
Now check in path where you saved srcipt file and now double click on script
now script will open in sql and execute your query by select your another database
Another way is
If you want copy off your whole database in new db
then you can just create a BAK file of your database and Restore on new database