SQL Server 2000 記錄傳送基於 **資料庫維護計畫精靈**,2005 起完全重寫為獨立 Agent 作業架構。直接升級實例會導致傳送中斷,**必須遷移重新配置**。
| 策略 | 停機時間 | 複雜度 | 次要資料庫重新初始化 | 適用場景 |
|---|---|---|---|---|
| 帶容錯移轉遷移 | 極短 (僅切換時) | 高 | 否 | 7x24 不可停機、資料庫大 |
| 不帶容錯移轉遷移 | 主庫升級期間不可用 | 中 | 否 | 可接受短暫停機、資料庫中等 |
| 完全重新部署 | 視備份/還原時間 | 低 | 是 (從完整備份) | 資料庫小、高可用性非關鍵 |
假設:Server A (Primary, SQL 2000) → Server B (Secondary, SQL 2000)
2008 不使用以下系統表與作業,可安全刪除:
DROP TABLE msdb.dbo.log_shipping_databases; DROP TABLE msdb.dbo.log_shipping_monitor; DROP TABLE msdb.dbo.log_shipping_plan_databases; DROP TABLE msdb.dbo.log_shipping_plan_history; DROP TABLE msdb.dbo.log_shipping_plans; DROP TABLE msdb.dbo.log_shipping_primaries; DROP TABLE msdb.dbo.log_shipping_secondaries; -- 刪除 2000 記錄傳送建立的 SQL Agent 作業
2008 Enterprise 引入 **備份壓縮**。遷移後可啟用:
大幅減少備份檔案體積、網路傳輸時間、磁碟佔用。
遷移後次要資料庫**無法處於 STANDBY (唯讀) 模式**——此為架構限制,非 Bug。需報表查詢請改用 Database Snapshot (Enterprise) 或 AlwaysOn 可讀次要複本 (2012+)。
2000→2008 記錄傳送遷移本質是**架構重塑**。帶容錯移轉遷移雖步驟多,但能實現**業務零中斷、資料零遺失、次要庫免重建**,是關鍵系統首選。升級前跑 Upgrade Advisor、測試環境演練、備份 msdb,三步到位。