July 18, 2011 at 1:26 pm
All DBA's,
I'm getting an error when trying to execute the command below. The remote server is setup as a linked server on the local machine and I'm not sure what is causing the issue. The only thing I can think of is that the two servers are in differenct domains, but the developer says it used to work previously and the credential has permissions on the servers. Any help would be great.
Thanks,
David
July 18, 2011 at 1:35 pm
what specific error do you get?
are you trying to connect via a trusted connection, or with a SQL username and password?
the more details you give, the more we can help!
Lowell
July 18, 2011 at 1:37 pm
Whats the code?
July 18, 2011 at 1:38 pm
Lowell,
Sorry I forgot to post the error (below). Trying to run this statement logged in as a user with 'sysadmin' permissions.
Msg 7202, Level 11, State 2, Line 1
Could not find server 'cyn-sqr' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.
Hope this helps and thanks in advance,
David
July 18, 2011 at 1:40 pm
Sounds as if you have the name incorrect or some one deleted the linked server.
July 18, 2011 at 1:42 pm
server names with hyphens can be a problem.
do you get results with this command?
EXECUTE sp_tables_ex 'cyn-sqr'
--or
EXECUTE sp_tables_ex [cyn-sqr]
Lowell
July 18, 2011 at 1:43 pm
I have the linked server name correct and it is also qualified with the other server's domain name as well. It used to work before so I'm not sure why it's not anymore.
July 18, 2011 at 1:46 pm
did you ping it since across domains someone may have shut you off
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply