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.
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.
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.
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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With