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

 All Forums
 Development Tools
 ASP.NET
 SQL login from ASP.NET

Author  Topic 

Andraax
Aged Yak Warrior

790 Posts

Posted - 2002-08-15 : 07:12:51
Hi guys.

I have installed the .NET framework on a windows 2000 server running IIS. I noticed that when I make a connection to an SQL server using trusted connection, it logs into the SQL server using a local NT account called ASPNET. On the same server, running ASP, it uses the NT account of the user browsing the page. Why is this and can I change it somehow?

TIA,
Kalle Dahlberg

Andraax
Aged Yak Warrior

790 Posts

Posted - 2002-08-15 : 07:17:40
Don't bother answering, cracked it myself :)

Go to Top of Page

steelkilt
Constraint Violating Yak Guru

255 Posts

Posted - 2002-08-27 : 16:00:13
OK, what's the answer?

Go to Top of Page

Andraax
Aged Yak Warrior

790 Posts

Posted - 2002-08-28 : 03:00:04
The config file called "machine.config" in the .NET framework config directory must include these two rows:

<authentication mode="Windows">
...
<identity impersonate="true" userName="" password=""/>

Go to Top of Page
   

- Advertisement -