2014-12-19 238 views
0

我從Mochahost網站Pabel下載了備份文件。但是,當我在使用SQL Server 2008的本地計算機上恢復它時,它會給我錯誤。恢復數據庫備份問題

錯誤說明:

Specified cast is not valid. (SqlManagerUI) 

------------------------------ 
Program Location: 

    at Microsoft.SqlServer.Management.SqlManagerUI.SqlRestoreDatabaseGeneral.PopulateGridWithBackupSetsFromDevices() 
    at Microsoft.SqlServer.Management.SqlManagerUI.SqlRestoreDatabaseGeneral.GetBackupSetsFromDevices() 
    at Microsoft.SqlServer.Management.SqlManagerUI.SqlRestoreDatabaseGeneral.textDeviceSelected_TextChanged(Object sender, EventArgs e) 
    at System.Windows.Forms.Control.OnTextChanged(EventArgs e) 
    at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e) 
    at System.Windows.Forms.Control.set_Text(String value) 
    at System.Windows.Forms.TextBoxBase.set_Text(String value) 
    at System.Windows.Forms.TextBox.set_Text(String value) 
    at Microsoft.SqlServer.Management.SqlManagerUI.SqlRestoreDatabaseGeneral.buttonSelectDevice_Click(Object sender, EventArgs e) 
    at System.Windows.Forms.Control.OnClick(EventArgs e) 
    at System.Windows.Forms.Button.OnClick(EventArgs e) 
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 
    at System.Windows.Forms.Control.WndProc(Message& m) 
    at System.Windows.Forms.ButtonBase.WndProc(Message& m) 
    at System.Windows.Forms.Button.WndProc(Message& m) 
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

我使用MS SQL Server 2008的

回答

1

這聽起來像你的備份是SQL Server的比你已安裝的更新版本。

SQL Server向後兼容,但不兼容。您將需要一個實例更新或相同版本的SQL Server到您要恢復的備份。

+0

我試圖恢復SQL Server 2012到2008數據庫的備份。 – user3441151 2014-12-19 11:23:00

+0

無法將更高版本的備份恢復到更低版本 – Shanky 2014-12-19 16:09:33