码迷,mamicode.com
首页 > 数据库 > 详细

sqlserver 跨服务器备份表

时间:2018-07-29 21:16:21      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:sys   数据库名   sqlserver   int   distrib   用户   ati   org   表名   

exec sp_configure ‘show advanced options‘,1 reconfigure
exec sp_configure ‘Ad Hoc Distributed Queries‘,1 reconfigure
SELECT * into T_System_Organization_bak_20180308
from openrowset (‘SQLOLEDB‘ , ‘10.***.***.***,端口 ; ‘用户名‘ ; ‘密码‘ ,[数据库名称].dbo.表名)
exec sp_configure ‘Ad Hoc Distributed Queries‘,0 reconfigure
exec sp_configure ‘show advanced options‘,0 reconfigure

sqlserver 跨服务器备份表

标签:sys   数据库名   sqlserver   int   distrib   用户   ati   org   表名   

原文地址:https://www.cnblogs.com/shihaibin821/p/9387543.html

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