Permissions issue in SSMS: “The SELECT permission was denied on the object 'extended_properties', database 'mssqlsystem_resource', … Error 229)”

前端 未结 5 1207
-上瘾入骨i
-上瘾入骨i 2020-12-18 18:41

Here’s the simplest repro case possible.

  1. Create a brand new database. (I\'m using SQL 2005.)
  2. Create a login, a SQL user, and a table in the new databa
5条回答
  •  不知归路
    2020-12-18 19:17

    "By creating the SQL server db with an account, that account is owner and has all needed access"

    No need for further enhancements in permissions.

    This approach removed the access error which this thread seems about. I encountered the access error in SSMS, as well as Visual Studio (EF), using windows authentication and having created the SQL server DB with the Administrator account.

    Practical solution for me was :

    SSMS > start as administrator, sql server logon : with windows authentication - NOT to create an SQL server db - but to give an account 'create db any' permission on 'master'

    then SSMS logon with that account (that has 'create db any' permissions on master) - to create the (empty) database

    (VISUAL STUDIO xtra : then, in visual studio, connect to sql server with that account and compare schema's between LocalDB (source) and sql server db (target). works out well : the target db gets the schema and data content)

提交回复
热议问题