📜  openquery 插入链接服务器 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:18.539000             🧑  作者: Mango

代码示例1
INSERT INTO OPENQUERY([Remoteserver]
    ,'SELECT subdirectory, depth, [file] FROM [RemoteDB].[dbo].[files]')
EXEC master.sys.xp_dirtree '\\fileserver\DBBackup', 1, 1;