/****** Object: LinkedServer [10.200.2.54\sqlexpress] Script Date: 03/12/2012 12:07:14 ******/
EXEC master.dbo.sp_addlinkedserver @server = N'192.168.20.1\sqlexpress', @srvproduct=N'SQL Server'
/* For security reasons the linked server remote logins password is changed with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'192.168.20.1\sqlexpress',@useself=N'False',@locallogin=NULL,@rmtuser=N'USERNAME',@rmtpassword='PASSWORD'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'data access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'dist', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'pub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'rpc', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'rpc out', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'sub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'collation name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'lazy schema validation', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'use remote collation', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'192.168.20.1\sqlexpress', @optname=N'remote proc transaction promotion', @optvalue=N'true'
GO
No comments:
Post a Comment