Getting Started with Web applications development with servlets and JSP - Part 5: Filters
First Time? You can support us by signing up. It takes only 5 seconds. Click here to sign up. If you already have an account, click here to login.


Upload Image Close it
Select File

Learned something today? Share it, or learn from what others have learned today

SQL Server - "Could not connect to server 'RemoteServer' because 'LocalServer' is not defined as a remote server in sql server"

Nov 7 2011 10:20AM by Paresh Prajapati   

I faced this error mentioned in title while running stored procedure in local server which updates data in remote server. I was able to fetch data from remote server but couldn't update through linked server. I checked the linked server and access but it was fine.

Then i created linked server back and added remote login for 'local server' in remote server and worked fine.

EXEC sp_AddRemoteLogin 'local server','login name'
Read More..  [6 clicks]


Paresh Prajapati
7 · 24% · 5511
8
 
2
 
 
0
Incorrect
 
0
Interesting
 
0
Forgotten
 
0
Move



Submit

1  Comments  

  • This feature will be removed in the next version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible. Use linked servers and linked server stored procedures instead. Reference

    commented on Nov 8 2011 1:47PM  .  Report Abuse This post is not formatted correctly
    mymmb
    2044 · 0% · 4

Your Comment


Sign Up or Login to post a comment.

"SQL Server - "Could not connect to server 'RemoteServer' because 'LocalServer' is not defined as a remote server in sql server" " rated 5 out of 5 by 8 readers
SQL Server - "Could not connect to server 'RemoteServer' because 'LocalServer' is not defined as a remote server in sql server" , 5.0 out of 5 based on 8 ratings
    Copyright © Beyondrelational.com Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising