問題描述
我不斷收到錯誤消息:
執行 transact-sql 語句或批處理時發生異常
an exception occurred while executing a transact-sql statement or batch
嘗試在 SQL Server Management Studio 2016 中執行任何操作時.
when trying to do anything in SQL Server Management Studio 2016.
當我嘗試創建或編輯登錄名時,當我嘗試創建新數據庫時,基本上是在我做任何事情時,都會發生這種情況.
This occurs when I try to create or edit a login, when I try to create a new database, basically when I do anything.
我嘗試了 SQL Server 2008 R2 Express 權限 -- 無法創建數據庫或修改用戶,但我無法編輯步驟 6 中指定的啟動參數.
I tried the solution given in SQL Server 2008 R2 Express permissions -- cannot create database or modify users but I can't edit the Startup Parameters specified in step 6.
誰能解釋一下問題是什么以及如何解決?
Can anyone explain what the issue is and how to solve it?
推薦答案
我在嘗試附加數據庫時收到此錯誤消息,如果是您的情況,請轉到您的數據庫所在的文件夾:
I got this error message while trying to attach DB, if it's your case, go to to the folder where your DB is:
- 右鍵單擊 => 屬性 => 安全性 => 高級
- 確保正確的用戶具有完全控制"權限
- 如果不是:
- 點擊更改權限"
- 為相關用戶(或所有用戶)設置完全控制"權限
它對我有用.
這篇關于執行 transact-sql 語句或批處理時發生異常的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!