Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Login using AD credentials (service account)
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

2 Posts

Posted - 11/01/2012 :  08:15:59  Show Profile  Reply with Quote
Hi all,

Is it possible to login to SQL using another AD-credential?

We want to use a service account loging into an application. This application is running onto 3 client PC's and is used by multiple users. For whatever reason we may not use a SQL account, but must use a service account.

I cannot get it to work. All I get is a login failed. Login in using a SQL account works great.

Current DataLink Properties:
Servername: databaseserver
User name: DOMAIN/service_account
Password: password
Database: database

Ar is it possible to map a AD account to a SQL account?

What would be the best option?


Very Important crosS Applying yaK Herder

52326 Posts

Posted - 11/01/2012 :  10:07:51  Show Profile  Reply with Quote
is that domain user account added into server as a valid user account?

SQL Server MVP

Go to Top of Page

Starting Member

2 Posts

Posted - 11/01/2012 :  11:32:13  Show Profile  Reply with Quote
Yes. If you mean the service-account is added to the security group in SQL.

When I login (or 'run as' the application) under this service-account, then I can make a connection using Windows Authentication.
But we want to store the login information so everone who uses the application, the application connects to the database with the service account credentials.

The account in SQL:

The account in the connection settings (which does not work atm):
Go to Top of Page

Aged Yak Warrior

819 Posts

Posted - 11/05/2012 :  14:44:03  Show Profile  Reply with Quote
You cannot set this up that way - you would need to have the processes impersonate the service account, authenticate on Windows using that service account - then it might work.

I would recommend setting up an AD group with each individual who access the application added to the group, then change your connection to use Windows NT Integrated Security.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000