標籤:sql 2008 sql server安裝 sql 2008r2
最近,電腦重裝系統之後,安裝了SQL Server 2008。附加資料庫檔案的時候,發現無法附加,提示版本不對。想起來,原來的資料庫版本是SQL Server 2008R2。低版本的資料庫管理工具無法相容高版本的資料庫檔案,所以無法直接附加。我有10幾個這樣的資料庫檔案需要附加到資料庫管理工具中,上網百度一番之後,沒有查到什麼特別的捷徑。最後,只好選擇了先將這些數據庫檔案附加到一台安裝了SQL Server 2008R2的電腦上,再匯出資料指令碼,通過資料指令碼還原資料庫檔案到SQL Server 2008資料庫管理工具中的辦法。匯出的時候,一開始遇到點小問題,導致無法匯出資料指令碼,只能匯出資料庫結構指令碼。反覆幾次,才明白是匯出選項中,SQL Server 2008R2與SQL Server 2008的上輩子選項不大一樣。經過調整,終於全部成功匯出,並且成功恢複到SQL Server 2008資料庫管理工具中。
操作過程如下所示: 650) this.width=650;" src="http://img.my.csdn.net/uploads/201311/13/1384356902_4860.png" style="border:none;" />
650) this.width=650;" src="http://img.my.csdn.net/uploads/201311/13/1384356903_8648.png" style="border:none;" />
650) this.width=650;" src="http://img.my.csdn.net/uploads/201311/13/1384356903_5738.png" style="border:none;" />
650) this.width=650;" src="http://img.my.csdn.net/uploads/201311/13/1384356904_2319.png" style="border:none;" />
650) this.width=650;" src="http://img.my.csdn.net/uploads/201311/13/1384356904_1000.png" style="border:none;" />
650) this.width=650;" src="http://img.my.csdn.net/uploads/201311/13/1384356921_6916.png" style="border:none;" />
650) this.width=650;" src="http://img.my.csdn.net/uploads/201311/13/1384356921_4830.png" style="border:none;" />
650) this.width=650;" src="http://img.my.csdn.net/uploads/201311/13/1384356922_5875.png" style="border:none;" />
650) this.width=650;" src="http://img.my.csdn.net/uploads/201311/13/1384357309_4063.png" style="border:none;" />
650) this.width=650;" src="http://img.my.csdn.net/uploads/201311/13/1384356922_2870.png" style="border:none;" />
650) this.width=650;" src="http://img.my.csdn.net/uploads/201311/13/1384356929_9285.png" style="border:none;" />
本文出自 “搖曳的風箏” 部落格,請務必保留此出處http://pinzi.blog.51cto.com/4845903/1603838
SQL Server 2008R2資料庫檔案匯入到SQL Server 2008資料庫中