ITPub博客

首页 > Linux操作系统 > Linux操作系统 > (SQL server)建数据库链脚本

(SQL server)建数据库链脚本

原创 Linux操作系统 作者:nj838991 时间:2011-12-07 11:25:39 0 删除 编辑

/****** 对象:  LinkedServer [WANGQIU_DX_20021]    脚本日期: 08/26/2011 15:52:03 ******/
EXEC master.dbo.sp_addlinkedserver @server = N'WANGQIU_DX_20021', @srvproduct=N'WANGQIU_DX_20021', @provider=N'SQLNCLI', @datasrc=N'180.96.16.82'
 /* For security reasons the linked server remote logins password is changed with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'WANGQIU_DX_20021',@useself=N'False',@locallogin=NULL,@rmtuser=N'zywq',@rmtpassword='########'

GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'data access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'dist', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'pub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'rpc', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'rpc out', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'sub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'collation name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'lazy schema validation', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'WANGQIU_DX_20021', @optname=N'use remote collation', @optvalue=N'true'

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22359110/viewspace-712859/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2011-12-07

  • 博文量
    8
  • 访问量
    20200