在线播放亚洲第一字幕,大鸡巴操死我了视频网站,欧美日韩中文字,久久久999婷婷欧美一区

以文本方式查看主題

-  昂捷論壇  (http://www.yzsenyi.com/bbs/index.asp)
--  □-系統(tǒng)配置管理類  (http://www.yzsenyi.com/bbs/list.asp?boardid=34)
----  問:簡單做異地備份的腳本是怎樣的?  (http://www.yzsenyi.com/bbs/dispbbs.asp?boardid=34&id=3980)

--  作者:飛絮
--  發(fā)布時間:2008/6/3 22:18:23
--  問:簡單做異地備份的腳本是怎樣的?

答:在數(shù)據(jù)庫任務中以以下腳本可實現(xiàn)數(shù)據(jù)庫的定時備份:

 


-- 異地備份

 

-- 第一步:使用net命令連接異地服務器
-- To allow advanced options to be changed.
EXEC sp_configure \'show advanced options\', 1
GO
-- To update the currently configured value for advanced options.
RECONFIGURE
GO
-- To enable the feature.
EXEC sp_configure \'xp_cmdshell\', 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO

EXEC xp_cmdshell \'net use \\\\192.168.1.6\\d$\\shq_bak password /user:administrator\',no_output

-- 第二步:執(zhí)行備份

declare @day int
set @day = datepart(weekday,getdate())
if (@day in (3,5,7)) begin
 backup database enjoy_shq to disk=\'\\\\192.168.1.6\\d$\\shq_bak\\enjoy_shq01.bak\' with init
end else if (@day in (2,4,6)) begin
 backup database enjoy_shq to disk=\'\\\\192.168.1.6\\d$\\shq_bak\\enjoy_shq02.bak\' with init
end else begin
 backup database enjoy_shq to disk=\'\\\\192.168.1.6\\d$\\shq_bak\\enjoy_shq01.bak\' with init
end


板桥市| 伊川县| 惠水县| 安达市| 云和县| 湖州市| 西华县| 龙海市| 通渭县| 桐城市| 庄浪县| 阳曲县| 淄博市| 百色市| 伊吾县| 内丘县| 荥阳市| 托里县| 保亭| 宜兰县| 淳安县| 余江县| 桐乡市| 吴江市| 万荣县| 拜城县| 定安县| 始兴县| 兴国县| 深州市| 宜宾县| 克什克腾旗| 霍州市| 宜都市| 宁晋县| 太仓市| 东乡族自治县| 封开县| 丁青县| 泊头市| 长海县|