[성현모] DBPatch Restore 네트워크 드라이브 설정 추가
This commit is contained in:
16
CPXV2DBPatch/sqlScripts/NetworkDriveSet.sql
Normal file
16
CPXV2DBPatch/sqlScripts/NetworkDriveSet.sql
Normal 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)'
|
||||
Reference in New Issue
Block a user