Solved

An admin user with SQL authentication'

Posted on 2007-04-11
12
172 Views
Last Modified: 2010-03-19
Hi

I've been asked to setup a new database called DB1 and

'set up an admin user with SQL authentication'

Any ideas how I do this in SQL Server 2005?

If I expand DB1
I see
Security
Users

What should I do next?

thanks
AM
0
Comment
Question by:amoran
  • 4
  • 3
  • 3
12 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 18888966
go to the sql login, and add the server role server admin to that login
0
 

Author Comment

by:amoran
ID: 18889121
"go to the sql login"

Where is that?
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 18889180
you should have a folder "security" (not on the database level, but on the server level), you can edit/create (SQL) logins there. on such a login, you can assign fixed server roles, among them a server admin role.
0
 

Author Comment

by:amoran
ID: 18889376
So I should create a new login?
With windows or SQL Server authentication?
And give them the server role 'server admin'?

Thanks!
0
 

Author Comment

by:amoran
ID: 18889492
Ok so I created a new login with sql server authentication and gave them the server role 'server admin'.

So this means that username can login to all databases I create?

Thanks
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 42

Expert Comment

by:dqmq
ID: 18891136
>So this means that username can login to all databases I create?

You've only granted permissions at the server level. You also need to adminster security at the database level. Check out the user mapping dialog under Server Security and then also check out Security under each database.  
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 25 total points
ID: 18891280
>>So this means that username can login to all databases I create?
if you grant server admin role, yes, it can login to all databases your have or will create on that server WITHOUT giving explicit database permissions!

if that is too much, to not assign that server admin role, but map the login to a user in the respective database(s), and grant the roles you want to give, for example the database owner  (db_owner) role.
0
 
LVL 42

Expert Comment

by:dqmq
ID: 18892650
AngelIII is right about server admins not requiring explicit grants for database permissions.  However, the question was about setting up an admin user, not an admin login (perhaps I'm interpreting to literally).  
0
 

Author Comment

by:amoran
ID: 18896130
Thanks guys ...
I'm trying to access the database from a SQLDataSource in an ASP.NET website.
When I configure the datasource the database shows up when I select the 'Use Windows Authentication' but not if I choose 'Use SQL Server Authentication' and enter the username and password that I created in SQL Server 2005.

Any ideas?


0
 
LVL 42

Assisted Solution

by:dqmq
dqmq earned 25 total points
ID: 18904210
Like I said, check out the user mapping dialog under Server Security and then also check out Security under each database.  

Or try this:
Logon using SQL Server Management Studio using your SQL Server login. Then open a new query window and run:
 
"USE yourdatabase"
"SELECT USER".  Likely, whatever USER is reported back does not have the necessary permissions.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now