发布网友 发布时间:2022-04-23 00:47
共2个回答
懂视网 时间:2022-05-02 17:19
[master] GO /****** Object: LinkedServer [IPDYH] Script Date: 2018/2/9 9:11:53 ******/ EXEC master.dbo.sp_addlinkedserver @server = N‘IPDYH‘, @srvproduct=N‘ ‘, @provider=N‘SQLNCLI‘, @datasrc=N‘192.168.0.16QYDYHMSSQL‘ /* For security reasons the linked server remote logins password is changed with ######## */ EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N‘IPDYH‘,@useself=N‘False‘,@locallogin=NULL,@rmtuser=N‘sa‘,@rmtpassword=‘@KTYpms123‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘collation compatible‘, @optvalue=N‘false‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘data access‘, @optvalue=N‘true‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘dist‘, @optvalue=N‘false‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘pub‘, @optvalue=N‘false‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘rpc‘, @optvalue=N‘false‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘rpc out‘, @optvalue=N‘false‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘sub‘, @optvalue=N‘false‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘connect timeout‘, @optvalue=N‘0‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘collation name‘, @optvalue=null GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘lazy schema validation‘, @optvalue=N‘false‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘query timeout‘, @optvalue=N‘0‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘use remote collation‘, @optvalue=N‘true‘ GO EXEC master.dbo.sp_serveroption @server=N‘IPDYH‘, @optname=N‘remote proc transaction promotion‘, @optvalue=N‘true‘ GO
建立SQL链接服务器
标签:rem pre proc 简单的 链接服务器 reason false 有一个 name
热心网友 时间:2022-05-02 14:27
你运行的Management Studio是管理工具(不是sqlserver服务器),是用来管理服务器的,新建服务器注册,就是连接到一个新的sqlserver服务器上。