[성현모] DBPatch Restore 네트워크 드라이브 설정 추가

This commit is contained in:
SHM
2024-07-26 15:34:56 +09:00
parent b605826c07
commit d9be94cc6b
3 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,16 @@
EXEC XP_CMDSHELL 'net use /delete Z:'
GO
EXEC sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
EXEC sp_configure 'xp_cmdshell', 1;
GO
RECONFIGURE;
GO
EXEC XP_CMDSHELL 'net use Z: $(NetworkDrivePath) $(NetworkDrivePasswd) /USER:$(NetworkDriveHost)\$(NetworkDriveUser)'