标签:access sel 搬迁 word mic style class com nbsp
选中linkserver,按F7打开对象游览器,
选中linkserver,生成脚本。
把密码填入脚本运行即可
USE [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
标签:access sel 搬迁 word mic style class com nbsp
原文地址:https://www.cnblogs.com/JinweiChang/p/10943458.html