摘要:
--查询文件是否存在CREATE TABLE #tmp ([File Exists] BIT, [File is a Directory] BIT, [Parent Directory Exists] BIT) INSERT INTO #tmp ([File Exists], [File is a Directory], [Parent Directory Exists]) EXEC master.dbo.xp_fileexist 'D:\Test.bak' SELECT * FROM #tmp DROP TABLE #tmp--完整备份数据库BACKUP DATABASE M 阅读全文
摘要:
--查询文件是否存在CREATE TABLE #tmp ([File Exists] BIT, [File is a Directory] BIT, [Parent Directory Exists] BIT) INSERT INTO #tmp ([File Exists], [File is a Directory], [Parent Directory Exists]) EXEC master.dbo.xp_fileexist 'D:\Test.bak' SELECT * FROM #tmp DROP TABLE #tmp--完整备份数据库BACKUP DATABASE M 阅读全文