要解決此問題,將 Data Source 從:
DataSource=(LocalDb)\v11.0;Integrated Security=true;
AttachDbFileName=C:\MyFolder\MyData.mdf;
AttachDbFileName=C:\MyFolder\MyData.mdf;
改為:
DataSource=(LocalDB)\MSSQLLocalDB;Integrated Security=true;
AttachDbFileName=C:\MyFolder\MyData.mdf;
AttachDbFileName=C:\MyFolder\MyData.mdf;
就可以正常連接了
關鍵在 Data Source的 Local Db,更正後就可以使用了!
Reference:
http://www.codeproject.com/Questions/997968/cannot-be-opened-because-it-is-version-this-server
沒有留言:
張貼留言