Hello Dave,
I am glad to hear that most of the problem has been resolved in that
service request.

For the new question, how to assign right to Network
Service account in SQL Server, I am glad to explain it more here.
In fact, this is a FAQ in accessing sql server in asp.net programming.
Please refer to this article:
"PRB: "Login Failed" Error Message When You Create a Trusted Data
Connection from ASP.NET to SQL Server"
http://support.microsoft.com/default.aspx?scid=kb;EN-US;316989
From the article, we can see that we need to add Network Service account to
SQL server in IIS 6.0. The secret here is that Network Service account is a
hidden account, like local system, local machine. We can't see it in
Computer Management->Local Users and Groups. Please refer to the follow
steps:
1) In SQL Server Enterprise managed, create a new database named
TestDatabase.
2) In the users of that TestDatabase, right click and select "New Database
User...".
3) In the pop up dialog, click the downarrow of Login name group box, we
can see one account named "NT AUTHORITY\NETWORK SERVICE". I believe that is
what we want.
By default, the ASP.NET worker process on a Windows Server 2003 (IIS6)
machine uses the local "NT AUTHORITY\NETWORK SERVICE" user account. And on
Windows 2000 / XP (IIS 5.x), it uses the local ASPNET user account. Also,
ASP.NET has impersonnation turned off by default.
Hence, in this configuration, if you want your web page to access a Sql
Server database, you'll need to give database access permissions to the
corresponding
local user account, depending on which IIS version you are using.
Carl Prothman posted some following samples before. I pasted it here for
your reference:
------------------------------------------------------------
Here is a summary for a machine called "CARLP7" on IIS 5.x, with
Authentication mode="Windows" in web.config
- If Identity impersonate="false" and IIS Anon Access enabled
=> WindowsIdentity.GetCurrent().Name = CARLP7\ASPNET
- If Identity impersonate="false" and IIS NTLM enabled
=> WindowsIdentity.GetCurrent().Name = CARLP7\ASPNET
- If Identity impersonate="true" and IIS Anon Access enabled
=> WindowsIdentity.GetCurrent().Name = CARLP7\IUSR_CARLP7
- If Identity impersonate="true" and IIS NTLM enabled
=> WindowsIdentity.GetCurrent().Name = CARLP7\Administrator (logged on user)
Here is a summary for a machine called "CARLP7" on IIS 6.0, with
Authentication mode="Windows" in web.config
- If Identity impersonate="false" and IIS Anon Access enabled
=> WindowsIdentity.GetCurrent().Name = NT AUTHORITY\NETWORK SERVICE
- If Identity impersonate="false" and IIS NTLM enabled
=> WindowsIdentity.GetCurrent().Name = NT AUTHORITY\NETWORK SERVICE
- If Identity impersonate="true" and IIS Anon Access enabled
=> WindowsIdentity.GetCurrent().Name = CARLP7\IUSR_CARLP7
- If Identity impersonate="true" and IIS NTLM enabled
=> WindowsIdentity.GetCurrent().Name = CARLP7\Administrator (logged on user)
---------------------------
Does that answer your question?
Best regards,
Yanhong Huang
Microsoft Community Support
Get Secure! 每
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
>> Stay informed about: Access Denied Problem