Link to home
Start Free TrialLog in
Avatar of sgaurav7
sgaurav7

asked on

sysservers

Hi,

I am trying to create a Stored Procedure but it gives me an error
"Could not find "ABCSERVER" in sysservers. Execute sp_addlinkserver to add the server to sysservers"

How do I add this?

Thanks
Avatar of flavo
flavo
Flag of Australia image

Can you post the SP you are trying to add?
Avatar of sgaurav7
sgaurav7

ASKER

what does sp_addlinkedserver does?

you tried looking in the BOL?

Creates a linked server, which allows access to distributed, heterogeneous queries against OLE DB data sources. After creating a linked server with sp_addlinkedserver, this server can then execute distributed queries. If the linked server is defined as Microsoft® SQL Server™, remote stored procedures can be executed.

etc... Have a read
Can you post the SQL for the SP that is throwing this error?  Are you actually trying to get data from another SQL Server / Oracle / Access / Text File / Excel etc..??

Dave
And how do I link a server?

Is it just sp_addlinkedserver 'servername'

?
ASKER CERTIFIED SOLUTION
Avatar of flavo
flavo
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Racim BOUDJAKDJI
Racim BOUDJAKDJI
Flag of Algeria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial