If the web server and SQL Server are on the same machine...
1. If SQL Server is using Windows Authentication, you have to add
MACHINENAME\ASPNET to SQL Server logins.
2. If IIS is using Integrated Windows authentication and SQL Server is
using Windows Authentication and you are using impersonation in web.config,
you have to add the current user (MACHINENAME\USERNAME) who logged on
Windows to SQL Server logins.
If the web server and SQL Server are on the seperated machines...
1. If IIS is using Integrated Windows authentication and SQL Server is
using Windows Authentication, you have to use impersionation in web.config
and also configure NT Kerberos and Delegation. Delegation is only supported
by Win2k.
2. If IIS is using Integrated Windows authentication, a much simply
solution is to use SQL Server Authentication in SQL Server and specify the
username and password in the connection string.
Commercial-Free !!!