SQL SERVER-LinkServer搬迁
时间:2021-07-01 10:21:17
帮助过:17人阅读
[master]
GO
/****** Object: LinkedServer [SDSC2-1] Script Date: 5/29/2019 2:45:57 PM ******/
EXEC master.dbo.sp_addlinkedserver
@server = N
‘SDSC2-1‘,
@srvproduct=N
‘SQL Server‘
/* For security reasons the linked server remote logins password is changed with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin
@rmtsrvname=N
‘SDSC2-1‘,
@useself=N
‘False‘,
@locallogin=NULL,
@rmtuser=N
‘sa‘,
@rmtpassword=‘########‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘collation compatible‘,
@optvalue=N
‘false‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘data access‘,
@optvalue=N
‘true‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘dist‘,
@optvalue=N
‘false‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘pub‘,
@optvalue=N
‘false‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘rpc‘,
@optvalue=N
‘true‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘rpc out‘,
@optvalue=N
‘true‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘sub‘,
@optvalue=N
‘false‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘connect timeout‘,
@optvalue=N
‘0‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘collation name‘,
@optvalue=null
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘lazy schema validation‘,
@optvalue=N
‘false‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘query timeout‘,
@optvalue=N
‘0‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘use remote collation‘,
@optvalue=N
‘true‘
GO
EXEC master.dbo.sp_serveroption
@server=N
‘SDSC2-1‘,
@optname=N
‘remote proc transaction promotion‘,
@optvalue=N
‘false‘
GO
SQL SERVER-LinkServer搬迁
标签:access sel 搬迁 word mic style class com nbsp