我正在使用Microsoft SQL Server 2012 Management Studio Express。我分離了我的一個數據庫(它在我的辦公室服務器上),.mdf
和.ldf
文件被保存到MSSQL
文件夾(在本地服務器上)。當我分離數據庫時,它說我的連接(希望服務器)不能分離數據庫。然後,我選擇分離模式下的拖放連接選項。Microsoft SQL Server錯誤916
現在,當我嘗試附加數據庫時,它不允許我附加。當我點擊添加按鈕不給我選擇瀏覽我的文件夾。顯示下面的錯誤消息。
Failed to retrieve data for this request.(Microsoft.SqlServer.Management.Sdk.Sfc)
Additional information:
An exception occurred while executing a Transact-SQL statement or batch.(Microsoft SQL server. connectionInfo).
The server principal "my username" is not able to access the database "model" under the current security context.(Microsoft SQL server, Error:916).
我該怎麼辦?請幫幫我。
此帖可能對您有所幫助http://stackoverflow.com/questions/5603205/sql-server-error-916 – Sadikhasan
您使用哪一個用戶登錄? – Namphibian
我嘗試了我的用戶名和管理員用戶名。但都給出了相同的結果。 – Udith