Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello all,

I wana ask that i have two computers in a LAN and both have sql server 2008 installed. I want to access database from 1 to second computer. Like if second computer has following databases
1.DB
2.MyDatabase

I want to access both of these databases from my first computer using sql server 2008. Both have windows xp installed.
plz help me to connect both sql servers to share database.

Thanks
Plz help
Posted

1 solution

On Machine 1, created a linked server to Machine 2

http://msdn.microsoft.com/en-us/library/ms188279.aspx[^]

You can then issue 4 part naming queries against the server using start TSQL, e.g.

SQL
Select Field1, Field2
From
    MyLinkedServerName.dbo.DatabaseName.TableName
Where
    IdField = 1
 
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