Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To add server using sp_addlinkedserver

I tried to insert values from one server to another server and I got the error:

Msg 7202, Level 11, State 2, Line 1 Could not find server 'SNRJDI\SLAMANAGEMENT' in sysservers. Execute sp_addlinkedserver to add the server to sysservers.

like image 677
Domnic Avatar asked Apr 19 '12 11:04

Domnic


People also ask

How do I add a server to my linked in server?

Open SQL Server Management Studio, enter the name of your local SQL Server, and then select Connect. Expand Server Objects, right-click Linked Servers, and then select New Linked Server. To see Server Objects, connect to a local on-premises SQL Server. Then, Server Objects should be displayed.

How do I connect to a SQL linked server?

Open SQL Server Management Studio and connect to an instance of SQL Server. In the Object Explorer, expand the node for the SQL Server database. In the Server Objects node, right-click Linked Servers and click New Linked Server. The New Linked Server dialog is displayed.


1 Answers

I got it. It worked fine

Thank you for your help:

EXEC sp_addlinkedserver @server='Servername'  EXEC sp_addlinkedsrvlogin 'Servername', 'false', NULL, 'username', 'password@123' 
like image 98
Domnic Avatar answered Sep 22 '22 12:09

Domnic