Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3635236
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:52:43+00:00 2026-05-19T00:52:43+00:00

Greetings all, I’ve run into a problem that has me stumped. I’ve put together

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:52:44+00:00Added an answer on May 19, 2026 at 12:52 am

    GRANT ALL is not performing the action you believe it to be.

    I suggest for testing purposes that you consider using Database Roles in order to manage the privileges of your User.

    Here is a list of the available Database-Level Roles

    You can add an existing User to a Database Level role by using the system stored procedure sp_AddRoleMember. For example, the following will provide READ permission to your User for all objects within the given database.:

    EXEC sp_addrolemember 'db_datareader','auditor'
    

    Ideally, you will likely want to consider defining your own Database Roles in order to manage privileges for your Database Users.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Greetings all, I have some JSON code that looks like this: { playlist: [
Greetings all, I want to run the code block inside the loop ,in seperate
Greetings to all! I want to create a pl/sql query by declaring variables for
Greetings all, I'm trying to localize a .NET/C# project. I'm using string resource files
Greetings to all! This is my first question here on stackoverflow. I have a
I am new here so first of all my greetings to you I am
Greetings all, Is there a built in way to know when a user is
Greetings all, In another post I asked about rendering PDF in Jmeter, and it
Greetings all, I have posted this on the MSDN managed news groups as well
Greetings all, I am taking a Structure and Application of Microcomputers course this semester

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.