Infrastructure has created an active directory account for me that has read access to the SQL 2008 database I need to query. The web application I’ve created does NOT use this account to run so I can’t use Identity Impersonate=”true” to access my datasource.
Is there a way in my connectionstrings node to just input the AD UN/PW combination (similar to how I would a SQL user account) to connect to my sql server?
please advise,
thanks
What you’d normally do is set the Application Pool identity to use the Windows (AD) service account and then use “trusted connection = yes” in your connection string in the web.config
This way you avoid the username/password in the web.config and you don’t even need to knows details of the service account.