To set up a remote server to allow the use of remote stored procedures
EXEC sp_addserver ServerName1, local
EXEC sp_addserver ServerName2
EXEC sp_configure 'remote access', 1
RECONFIGURE
GO
-- The example shows how to set up access for a login 'sa'
-- from ServerName1 on ServerName2.
EXEC sp_addserver ServerName2, local
EXEC sp_addserver ServerName1
EXEC sp_configure 'remote access', 1
RECONFIGURE
GO
-- Assumes that the login 'sa' in ServerName2 and ServerName1
-- have the same password.
EXEC sp_addremotelogin ServerName1, sa, sa
GO
sp_addremotelogin | sp_configure |
sp_addserver | RECONFIGURE |