SQL Server 2000 and IIS 6.0: Granting login permission

While debugging .NET Web Applications interfaced to SQL Server 2000 SP4 there are some things to check due to structural changes to IIS 6.0 in Windows Server 2003.

IIS 6.0 server user has changed to [NT AUTHORITY\NETWORK SERVICE] (on the Italian version is [NT AUTHORITY\SERVIZIO DI RETE]) and when accessing SQL Server, this one stop us telling that the user cannot login (obvious :-) ).

Open the Enterprise manager, go to Query Analyzer and execute the following Stored Procedure:

exec sp_grantlogin [NT AUTHORITY\NETWORK SERVICE]

Now your IIS user can login successfully according to the assigned permission.

Related Posts with Thumbnails

Popularity: unranked

Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

No Responses to “SQL Server 2000 and IIS 6.0: Granting login permission”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Indirizzo per il Trackback