Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
crsiva07
Starting Member
1 Post |
Posted - 2008-07-31 : 09:45:25
|
| I have a script which will have Current Employee details in Server1 also i have History of Old Employee detail DB in Server2(which is in different Box), am trying to access Server2 information from Server1 query analyser using SQL Server 2005.Ex:Connect SQL server 2005 query analyser and Connect to Server1Server Name : Server1DataBase Name : Employee_DetailServer Name : Server2 (which is in different Box)DataBase Name : Old_Employee_Detailso from query analyser i can do like thisUSE Employee_DetailSimilarly i want to access the Server2 table data from Server1, so try like thisUSE Employee_Detail.Old_Employee_DetailIts throwing error message like "No entry found with that name. Make sure that the name is entered correctly."Can any one please give the solution.Siva |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2008-07-31 : 09:50:53
|
| Just add the server name to the table (not the USE)select * from [Server2].[dbo].Employee_Detail.Old_Employee_DetailJim |
 |
|
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2008-07-31 : 09:53:28
|
| Setup linked server first. |
 |
|
|
|
|
|