Click here to Skip to main content
16,019,140 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Goodmorning everyone.

I need your help.
I have two database in different computer. Database1 and Database2.
but they have same structures, the tables and columns within those two database are really the same.

what i want to do is to integrate it into one. so that the data from the Database2 can now be access in the Database1.

Is there anyway one know how to integrate those database without replacing the existing data of Database1?

Any help or Suggestions will be so much appreciated.
Thank you so much,
God bless.
Posted

1 solution

I suggest you use MSSQL 2008R or later (recommended)

There is case studies you should do:

table1 in Database1 at Server1
table1 in Database2 at Server2

You should create the Linked Server ad Server Object for Database2 with the name DBLink on Server1 with all user authentication login to server2.

at Server1 and database1 you write the query:

Select * from dbo.table1
union
select * from DBLink.database2.dbo.table1

Hope this usefule for you.

Trong Anh
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900