zoukankan      html  css  js  c++  java
  • SQL Server创建LinkServer

    USE [master]
    GO
    
    /****** Object:  LinkedServer [xxx_LNK]    Script Date: 2014/7/7 17:04:13 ******/
    EXEC master.dbo.sp_addlinkedserver @server = N'xxx_LNK', @srvproduct=N'xxx_LNK', @provider=N'SQLNCLI', @datasrc=N'xxx.xx.xxx.xx', @catalog=N'CMD'
     /* For security reasons the linked server remote logins password is changed with ######## */
    EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'xxx_LNK',@useself=N'False',@locallogin=NULL,@rmtuser=N'dev',@rmtpassword='########'
    
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'collation compatible', @optvalue=N'false'
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'data access', @optvalue=N'true'
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'dist', @optvalue=N'false'
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'pub', @optvalue=N'false'
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'rpc', @optvalue=N'true'
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'rpc out', @optvalue=N'true'
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'sub', @optvalue=N'false'
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'connect timeout', @optvalue=N'0'
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'collation name', @optvalue=null
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'lazy schema validation', @optvalue=N'false'
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'query timeout', @optvalue=N'0'
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'use remote collation', @optvalue=N'true'
    GO
    
    EXEC master.dbo.sp_serveroption @server=N'xxx_LNK', @optname=N'remote proc transaction promotion', @optvalue=N'true'
    GO
  • 相关阅读:
    Linux 02
    Linux 01
    React 函数式组件的 Ref 和子组件访问(useImperativeHandle)
    排序算法之 Java插入排序算法
    排序算法之 Java选择排序算法
    排序算法之 Java冒泡算法
    类加载的过程---验证和准备
    类加载的过程---加载
    mysql explain 查询处理的结果详解
    springboot整合分布式缓存hazelCast
  • 原文地址:https://www.cnblogs.com/kevin-h-wang/p/LinkServer.html
Copyright © 2011-2022 走看看