Solved

to combine more databases into one database

Posted on 2015-01-13
4
46 Views
Last Modified: 2015-01-19
we have three different database and we would like to combine tables into one database so Is it possible to prepare these 3 databases into only one database?
0
Comment
Question by:Teoman Sahin
  • 2
4 Comments
 
LVL 10

Expert Comment

by:HuaMinChen
ID: 40548380
You can apply all the relevant codes to generate all DB objects of all 3 DBs, into the overall database.
0
 

Author Comment

by:Teoman Sahin
ID: 40548383
could you please give detailed information about how to do?
0
 
LVL 10

Expert Comment

by:HuaMinChen
ID: 40548398
For table, right-click table > Script table as > Drop and create to > Query

and collect all queries in the same way, for all other DB objects. Then you apply the overall query of all 3 DBs into overall DB.
0
 
LVL 7

Accepted Solution

by:
Swatantra Bhargava earned 500 total points
ID: 40548611
Create database A1

Create SQL script file of another database say like B1 after exporting all the tables
Now execute this script in A! database

Create SQL script file of another database say like C1 after exporting all the tables
Now execute this script in A! database

Now your final Database is A1

Hope this will help you...
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question