Link to home
Start Free TrialLog in
Avatar of Heather Klish
Heather KlishFlag for United States of America

asked on

Permissions needed to connect to ASPNETDB on SQL Server 2005

Hi all.  I've just created ASPNETDB on my SQL Server 2005 and currently it has the following users: dbo, guest, INFORMATION_SCHEMA and guest.  I'm assuming in my web.config file that I have to provide a username and password to this database.  However, it seems that I can't add the current username and password that I am using to connect to the database to the ASPNETDB in the usual way.  Can someone help me with this as I'm a newbie at this and can't find this information anywhere.

Thanks so much.
ASKER CERTIFIED SOLUTION
Avatar of nmarun
nmarun
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You'll want to add the ASPNET user, the "NT Authority\Network Service", or the IIS WP user to your DB as a user, and then give it access to your database.  It depends on what OS, and what version of IIS you are using.
There are two types of security  modes on sql server.
1. Windows authentication mode  
2. Mixed mode(sqlserver and windows authentication mode).

You must  set to mixed mode on the sql server to be able to login from asp.net application providing username/password combination on web.config.