首页 > 数据库技术 > 详细

sqlserver 跨服务器备份表

时间:2018-07-29 20:58:53      阅读:245      评论:0      收藏:0      [点我收藏+]

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 跨服务器备份表

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!