首页 > 代码库 > LinkServer 创建

LinkServer 创建

 

USE [master]GO/****** Object:  LinkedServer [MobileMDMlinkServer ]    Script Date: 2014/7/23 11:10:16 ******/EXEC master.dbo.sp_addlinkedserver @server = NMobileMDMlinkServer ,    @srvproduct = N , @provider = NSQLNCLI, @datasrc = N对应数据库实例 /* For security reasons the linked server remote logins password is changed with ######## */EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname = NMobileMDMlinkServer ,    @useself = NFalse, @locallogin = NULL, @rmtuser = Nsa,    @rmtpassword = ########GOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Ncollation compatible, @optvalue = NfalseGOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Ndata access, @optvalue = NtrueGOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Ndist, @optvalue = NfalseGOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Npub, @optvalue = NfalseGOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Nrpc, @optvalue = NfalseGOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Nrpc out, @optvalue = NfalseGOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Nsub, @optvalue = NfalseGOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Nconnect timeout, @optvalue = N0GOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Ncollation name, @optvalue = NULLGOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Nlazy schema validation, @optvalue = NfalseGOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Nquery timeout, @optvalue = N0GOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Nuse remote collation, @optvalue = NtrueGOEXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,    @optname = Nremote proc transaction promotion, @optvalue = NtrueGO