SQL Server之旅:(三)Attach mdf without ldf

SSMS修復好了。現在萬事俱備,只等真的動手Attach數據。關於這個操作,手動操作複雜些(需要四五步),執行SQL語句簡單些:

    sp_attach_single_file_db @dbname='MeetingRoomBooker', @physname='D:/Project/MeetingRoomBooker.mdf'

 

錯誤又出現了:

The database 'MeetingRoomBooker' cannot be opened because it is version 655. This server supports version 611 and earlier. A downgrade path is not supported.

 

經過搜索,發現產生mdf文件的數據庫實例的版本,大於我現在用的數據庫版本。無奈,只要弄了個最新的SQL Sever 2008 R2. 這一次沒有太多的懸念,一執行就成功了,伴隨一些可以忽略的錯誤。

 

 

搜索過程中,發現了常用SQL Server版本:

2005 - 611
2008 - 655 
2008 R2 - 660
   2008 R2 & minor patch - 661

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章