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

内容来源于网络如有侵权请私信删除
你还没有登录,请先登录注册
  • 还没有人评论,欢迎说说您的想法!