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 8248411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:10:55+00:00 2026-06-07T23:10:55+00:00

I have recently been working on a ASP.NET project for a client. The project

  • 0

I have recently been working on a ASP.NET project for a client. The project was to migrate the database from the old Oracle database to a new SQL Server 2008 database. The migration went well and most of the procedures did not take to long to fix. However we are now having a problem, up until now we have been using SQL Server authentication and using a username and password to access the database from the .NET code. Below shows the connection string:

<add key="DatabaseConnectionString" value="Data Source=DATASOURCE;Initial Catalog=DATABASE;User Id=USERID;Password=PASSWORD;"/>

This was working fine however recently i have recieved an email from the client saying:

“Instead of using a local SQL account for the .NET app to access the database could you please use an Active Directory account. In the web.config it will say <domain name>/<username> rather than just <username>.”

What i am confused about is:

Do i have to change the Authentication mode within SQL Server to Windows Authentication?
Does the client mean to change it from <username> to <domain>/<username> or the other way round?
Where abouts in the web.config do i need to make this change to the username? Is it in the connectionstring?

Any help on this would be great.

Also im not sure if you would need to know this but i have added it anyway…

This is the Authentication section of the web.config:

<identity impersonate="true"/>
<authentication mode="Windows"/>
  • 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-07T23:10:57+00:00Added an answer on June 7, 2026 at 11:10 pm

    Do i have to change the Authentication mode within SQL Server to Windows Authentication?

    No, because Windows Authentication is always enabled. However, disabling Sql Server Authentication is a good practice.

    Does the client mean to change it from “username” to “domain/username”

    No. This is not only about adding the domain name. You need to authenticate the user against the active directory and use delegation for the sql connection. To use the windows account, you need to decide whether you want a specific account to access the Sql Server, or the web site logged in user account.
    I think the first way is almost always better. For that you need to delete the user id and password from the connection string and replace it with “Integrated Security=SSPI”, and set the application pool identity to the active directory user account. In Sql Server you need to give this account the right to do what you need.
    For the second way, you need windows authentication for users in your web site, and use delegation for the connection. I don’t know if impersonation is enough for that.

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

Sidebar

Related Questions

I have been working on asp.net mvc3 e-commerce application based on NopCommerce. Recently we
I have been working on Eclipse recently. I am fairly new to java programming,
I have an ASP.NET MVC application that I'm working on. I've been developing it
I have recently been working with Matlab. My question stems from my usage over
I'm rather new to C and have recently been working on making a simple
I'm pretty new to web design and have recently been working on an amatuer
So recently I have been working on phonebook project that uses Binary Search Tree.
I have recently been working with someone on a project that is very ajax
I have recently been working on implementing an ajax based file uploader for my
I have recently been working on a Pastebin script (for fun) and I've come

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.