Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Creating Admin for Specific SQL Server 2005 DB

Posted on 2015-01-19
4
Medium Priority
?
103 Views
Last Modified: 2015-01-19
Hi all,

I am having issues trying to create a new login user and allow it admin priviledges to a specific DB.

I have create the new login with the db_owner as the default schema.

I have then added the user to the specific database -> under user mapping the db I want it to have access to is ticked and it has all the priviledges next to it for the db_owne checked.

However when I try and access through SQL Express interface i get the following error;

TITLE: Microsoft SQL Server Management Studio Express
------------------------------

Failed to retrieve data for this request. (Microsoft.SqlServer.Express.SmoEnum)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)

------------------------------

The SELECT permission was denied on the object 'extended_properties', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.4035&EvtSrc=MSSQLServer&EvtID=229&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------
0
Comment
Question by:flynny
  • 2
  • 2
4 Comments
 
LVL 53

Expert Comment

by:Vitor Montalvão
ID: 40557677
The database name is 'mssqlsystemresource'?
0
 

Author Comment

by:flynny
ID: 40557727
Vitor,

No the database is different. I'm not sure why this is appearing when I try to browse the tables in the db
0
 
LVL 53

Accepted Solution

by:
Vitor Montalvão earned 2000 total points
ID: 40557730
That's why I asked. What's the default database for the login that you created?
0
 

Author Closing Comment

by:flynny
ID: 40557742
Vitor,

Thanks for the help. After dropping and setting the default db on creaton the issue was resolved.

Thanks again
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question