Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using sp_addlinkedserver but getting invalid connectoin

Status
Not open for further replies.

bmacbmac

IS-IT--Management
Jan 26, 2006
392
US
Hi!

I am trying to access data from another server on my domain. Both servers are running SQL 2000.

On the first server I ran:

Code:
exec sp_addlinkedserver
@server='SERVER1',
@srvproduct='SQL SERVER'

It appears to have created ok. Now I am trying to run:

Code:
select * from SERVER1.myDataBase.Dbo.myTable

and getting an 'Invalid Connection' error.

Do I need to add something to my linkedserver script? Like maybe a username/password or something?
 
Try:
Code:
select * from \\SERVER1.myDataBase.Dbo.myTable

Also, check Server1 to see if the error log shows any related errors.

-SQLBill

The following is part of my signature block and is only intended to be informational.
Posting advice: FAQ481-4875
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top