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

  • SEARCH
  • Home
  • 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 8987129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:42:58+00:00 2026-06-15T21:42:58+00:00

I have a database Sample. And there is a user in Active Directory (AD)

  • 0

I have a database “Sample”. And there is a user in Active Directory (AD) called “CORPHQ\King”. I have followed these steps:

1) Go to SQL Server Management Studio (2005) and "Security -> Logins".
2) Right Click -> New Login
3) Login Name : CORPHQ\King
4) Selected "Windows Authentication"
5) Default database - "Sample".
6) Under "User Mapping" section, Selected the "Sample" database, User as "CORPHQ\King" and selected "dbo" as default schema.
7) Selected "db_owner" as "Database role membership for - Sample".

Now in the WEB.CONFIG of the ASP.NET application, i do have:

<connectionStrings>
    <add name="DB" connectionString="Data Source=128.127.126.25; database=Sample; user=corphq\King; password=XXXXXXXXXXX; Integrated Security=SSPI;" providerName="System.Data.SqlClient"/>
</connectionStrings>

Now when i ran the ASP.NET application, i am getting the error mentioned:

Error:

The SELECT permission was denied on the object 'tbl_Student', database 'Sample', schema 'dbo'

I think so user “CORPHQ\King” has the “db_owner” access to “Sample” database. Am i correct ? Where am i missing ?

Thanks

  • 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-06-15T21:42:59+00:00Added an answer on June 15, 2026 at 9:42 pm

    Since you’re specifying Integrated Security in your connection string, you shouldn’t be specifying a username and password when using Windows Authentication.

    Instead, you will be authenticating as whatever domain account ASP.NET is running under, which is probably the network service account.

    Your application is likely connecting as a totally different user than CORPHQ\King, and this other login doesn’t have the permissions for this operation.

    For more details, see How To: Connect to SQL Server Using Windows Authentication in ASP.NET 2.0

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

Sidebar

Related Questions

Say you have a string 3.4564. A sample set in the database has these
Programs used: SQL Server 2000, Excel 2003 We have a table in our database
I have the following task: there are a simple table from mysql database: <html>
I have installed a sample database, specifically Northwind from http://msdn.microsoft.com/en-us/library/8b6y4c7s.aspx . After installing the
I have a sample page that uses 2 PHP files and a MySql database,
Consider the following scenario We have a simple database that involves two entities: user
I have a user table in my database which contains two columns FirstName and
Scenario: I have an application (C#) that expects a SQL database and login, which
I'm working in Entity Framework 5. We're using Microsoft Active Directory for user authentication.
I am trying to push user account data from an Active Directory to our

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.