利用磁碟對映SqlServer遠端備份到另一台機器

2021-09-30 12:41:42 字數 1509 閱讀 6495

1.開啟

xp_cmdshell

exec

sp_configure

'show advanced options'

, 1go

-- to updatethe currently configured value for advanced options.

reconfigure go

-- to enablethe feature.

exec

sp_configure

'xp_cmdshell'

, 1go

-- to updatethe currently configured value for this feature.

reconfigure go

-- to disallowadvanced options to be changed.

exec

sp_configure

'show advanced options'

, 0go

-- to updatethe currently configured value for advanced options.

reconfigure go

2. exec

master

..xp_cmdshell

'net use z:

\\遠端ip\

遠端共享目錄

"使用者密碼

" /user:

user:

遠端ip \administrator'   

3.建立維護計畫任務

可以選用磁碟對映 若沒有執行前兩步,在選擇磁碟時則找不到遠端共享目錄 

建立備份

--如果要禁用,

-- to allow advanced options to bechanged.

exec

sp_configure

'show advanced options'

,1go

-- to update the currently configuredvalue for advanced options.

reconfigure go

-- to disable the feature.

exec

sp_configure

'xp_cmdshell'

, 0go

-- to update the currently configured valuefor this feature.

reconfigure go

-- to disallow advanced options to bechanged.

exec

sp_configure

'show advanced options'

,0go

-- to update the currently configuredvalue for advanced options.

reconfigure go

vb 磁碟對映

version 5.00 begin vb.form form1 caption form1 clientheight 3195 clientleft 60 clienttop 345 clientwidth 4680 linktopic form1 scaleheight 3195 scalewi...

C 磁碟對映

c 執行 cmd 命令使用 system 函式,執行成功,函式返回值為 0,失敗返回值為 非零值。如果磁碟已經對映,再次對映,會拋錯,所以,在程式退出之前需要刪除磁碟對映。磁碟對映命令 net use z serverurl user serveruser serverpassword z 後面需要...

網路磁碟對映

linux window 1 在liux下建立共享資料夾 2 訪問 3 選中資料夾,右鍵,磁碟對映 window linux 1 在window下建立共享資料夾 2 在 mnt下建立win資料夾 3 掛載 本地掛載 mount dev sda1 mnt usb 網路掛載 mount.cifs hom...