I am wkoing in a Server from which I have to access the other Server also. Both the SQL server are of version 7.0.
I can able to access the Server2 data from Server1 through Enterprise Manager. But throught a Select statement how can I access the the data of the Server2?
I hve added the Server2 through Sp_addlinkedserver by doing the following:
EXEC sp_addlinkedserver @server = 'TEST', @srvproduct = 'SqlServer', @provider = 'SQLOLEDB', @datasrc = '[192.168.0.236]'
After this when I tried to do the following :
select * from Test.imwemv11.dbo.InstMast
I shows the error 'Server: Msg 6, Level 16, State 1, Line 1
Specified SQL server not found.'
But I can connect to the Server2 through Enterprice manager & access the data. Can any body tells me how to solve it ?
Thanks in advance.
Tapks
I can able to access the Server2 data from Server1 through Enterprise Manager. But throught a Select statement how can I access the the data of the Server2?
I hve added the Server2 through Sp_addlinkedserver by doing the following:
EXEC sp_addlinkedserver @server = 'TEST', @srvproduct = 'SqlServer', @provider = 'SQLOLEDB', @datasrc = '[192.168.0.236]'
After this when I tried to do the following :
select * from Test.imwemv11.dbo.InstMast
I shows the error 'Server: Msg 6, Level 16, State 1, Line 1
Specified SQL server not found.'
But I can connect to the Server2 through Enterprice manager & access the data. Can any body tells me how to solve it ?
Thanks in advance.
Tapks