Solved

An admin user with SQL authentication'

Posted on 2007-04-11
12
183 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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
 
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

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