Transitioning from Domain Authentication to SQL Server Authentication

Posted by Albert Perrien on Stack Overflow See other posts from Stack Overflow or by Albert Perrien
Published on 2011-01-03T20:49:10Z Indexed on 2011/01/03 20:54 UTC
Read the original article Hit count: 241

Greetings all, I've run into a problem that has me stumped.

I've put together a database in SQL Server Express, and I'm having a strange permissions problem. The database is on my development machine with a domain user: DOMAIN\albertp. My development database server is set for "SQL Server and Windows Authentication" mode. I can edit and query my database without any problems when I log in using Windows Authentication.

However, when I log in to any user that uses SQL Server authentication (Including sa) I get this message when I run queries against my database.

SELECT * FROM [Testing].[dbo].[AuditingReport]

I get:

Msg 18456, Level 14, State 1, Line 1
Login failed for user 'auditor'.

I'm logged into the server from SQL Server Management Studio as 'auditor' and I don't see anything in the error log about the login failure.

I've already run:

Use Testing;
Grant All to auditor;
Go

And I still get the same error. What permissions do I have to set for the database to be usable by others outside of my personal domain login? Or am I looking at the wrong problem?

My ultimate goal is to have the database be accessible from a set of PHP pages, using a either a common login (hence 'auditor') or a login specific to a set of individual users.

© Stack Overflow or respective owner

Related posts about database

Related posts about query