• sql server数据库链接


     

    --Author: CXG
    --Todo:   远程数据传输(数据库链接)
    ---------------------------------------------------------------------------------------------------
         --add remote server link
         --star msdtc first
         execute   sp_addlinkedserver     @server   =     '192.168.0.45'  
         execute   sp_addlinkedsrvlogin   @rmtsrvname   =     '192.168.0.45',  
                   @useself   =     false   ,  
                   @locallogin   =   'sa',      
                   @rmtuser   =     'sa'   ,  
                   @rmtpassword   =     null
     go
    ---------------------------------------------------------------------------------------------------
         insert into [192.168.0.45].pos_bak.dbo.unit select * from pos_yn.dbo.unit
     go
    ---------------------------------------------------------------------------------------------------
    --drop remote server link
    execute sp_droplinkedsrvlogin     @rmtsrvname   =   '192.168.0.45',   @locallogin   =   'sa'  
    execute sp_dropserver     @server   =     '192.168.0.45'
     go

  • 相关阅读:
    14 procd
    13 netifd
    12 ubus
    18 iptables
    架构的学习
    Sqlserver 差异备份
    shiro学习笔记——shiro拦截器与url匹配规则
    使用Global Mapper14去除tif影像黑边/白边
    非GeoServer卫星影像及电子地图的瓦片方式发布
    Centos7安装Redis
  • 原文地址:https://www.cnblogs.com/hnxxcxg/p/2941022.html
Copyright © 2020-2023  润新知