码迷,mamicode.com
首页 > 其他好文 > 详细

LinkServer 创建

时间:2014-07-23 12:56:06      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   数据   io   2014   

 

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 = ########

GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Ncollation compatible, @optvalue = Nfalse
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Ndata access, @optvalue = Ntrue
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Ndist, @optvalue = Nfalse
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Npub, @optvalue = Nfalse
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Nrpc, @optvalue = Nfalse
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Nrpc out, @optvalue = Nfalse
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Nsub, @optvalue = Nfalse
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Nconnect timeout, @optvalue = N0
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Ncollation name, @optvalue = NULL
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Nlazy schema validation, @optvalue = Nfalse
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Nquery timeout, @optvalue = N0
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Nuse remote collation, @optvalue = Ntrue
GO

EXEC master.dbo.sp_serveroption @server = NMobileMDMlinkServer ,
    @optname = Nremote proc transaction promotion, @optvalue = Ntrue
GO

LinkServer 创建,布布扣,bubuko.com

LinkServer 创建

标签:style   blog   color   数据   io   2014   

原文地址:http://www.cnblogs.com/WolfBlog/p/3862557.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!