Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, i want to Connect two database.

My Major aim is to fetch data from the view table in SQL server 2000 to my central database in SQL server 2005. my major requirement is that the data fetching should be in realtime.

Can any one help in that ???
Posted
Comments
Wild-Programmer 13-Apr-11 0:15am    
Are both databases on same server or different locations?
Chintan Vithlani 13-Apr-11 0:23am    
Different locations

See the link below, it will show you step by step way to transfer data.
http://www.aspfree.com/c/a/MS-SQL-Server/SQL-2000-Data-Transfer-is-a-Snap-with-SQL-2005/[^]
 
Share this answer
 
Try using Linked servers.

Documentation can be found here[^]

After you have established a linked server, you can call your view like this,
SQL
SELECT       
    tb.id,
    tb.column1,
    tb2.column1,
    tb2.column2
FROM dbo.Table2 tb2
INNER JOIN  Server2.Database2.dbo.Table1 tb
ON tb2 = tb.id
 
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