EXEC master.dbo.sp_addlinkedserver
@server = N' MSSQL服务器实例名 ',
@srvproduct=N'SQL Server'
EXEC master.dbo.sp_addlinkedsrvlogin
@rmtsrvname=N'MSSQL服务器实例名',
@useself=N'False',
@locallogin=NULL,
@rmtuser=N'sa',
@rmtpassword='password'
EXEC master.dbo.sp_addlinkedserver
@server = N' MSSQL服务器实例名 ',
@srvproduct=N'SQL Server'
EXEC master.dbo.sp_addlinkedsrvlogin
@rmtsrvname=N'MSSQL服务器实例名',
@useself=N'False',
@locallogin=NULL,
@rmtuser=N'sa',
@rmtpassword='password'