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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 sp_addlinkedserver

Author  Topic 

vbseeker
Starting Member

8 Posts

Posted - 2004-06-25 : 07:32:56
hi,

Thanks for the reply of my last question.

Now i am facing one more problem.
Not able to connect the two sql servers.

Lets say there are two servers.

X with ip- 209 US Server
Y with ip -203 INDIA server

How i can connect these two server.

All the below things are being done at SERVER-X
I am using sp_addlinkedserver

exec sp_addlinkedserver 'Server-Y'
EXEC sp_addlinkedsrvlogin 'Server-Y', 'false', NULL, 'sa', 'xxxxxx'
I can see the enter in the sysservers in the master database

But when i exectue the query

SELECT TOP 10 * FROM [anand-new].NEWSITE.DBO.Xyz_NEW

Server: Msg 17, Level 16, State 1, Line 1
SQL Server does not exist or access denied.

Pls help.

Anand

nr
SQLTeam MVY

12543 Posts

Posted - 2004-06-25 : 07:38:44
SELECT TOP 10 * FROM [Server-Y].NEWSITE.DBO.Xyz_NEW

Or was that name just an example?
You might be getting firewall problems.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -