« Previous Next »

Answered Thread: ApplicationPoolIdentity + SQL

Last post 01-22-2010 2:06 PM by balak. 3 replies.

 

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 11-09-2009, 10:01 AM

    ApplicationPoolIdentity + SQL

    This is just to tell everyone that if you want to connect to SQL Server with the ApplicationPoolIdentity login, you can, but you can't use the user interface of SQL Management Studio.

    You can do this only from script (like when you want to give access to this user to NTFS you can't do it from the explorer security tab).

    CREATE LOGIN [IIS APPPOOL\mypool] FROM WINDOWS WITH DEFAULT_DATABASE=[master] USE [mydatabase] CREATE USER [IIS APPPOOL\mypool] FOR LOGIN [IIS APPPOOL\mypool]

    So you can give the access right directly to this "virtual" user, withoug the need to use the impersonate=true setting in web.config.

    We used it with SQL 2005 in Win2008 sp2 (not R2), with IIS 7.0

    Hope it may help someone, because I took me a lot of time to find it !
  • 11-11-2009, 4:35 AM In reply to

    Answered Re: ApplicationPoolIdentity + SQL

    Hi,

    Thanks for share!

    If SQL Sever installed on another machine which is joined to a domain, then ApplicationPoolIdentity use the server's machine account to access SQL Server Database.

    Below are some more information, hope help others too. 
    Application Pool Identities
    http://learn.iis.net/page.aspx/624/application-pool-identities/

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 01-22-2010, 2:06 PM In reply to

    • balak
    • Not Ranked
    • Joined on 01-22-2010, 2:04 PM
    • Posts 2

    Re: ApplicationPoolIdentity + SQL

    Hello,

    I had no luck in trying to create a login for the "IIS Apppool\mydefaultool)".

    Does this virtual account(Application pool identity) can be used to access the DB hosted on remote sql server?   if so how as i am not able to create a login for this account.

    Please let me know if you any pointers on this

    Regards

     

     

     

  • 01-22-2010, 2:06 PM In reply to

    • balak
    • Not Ranked
    • Joined on 01-22-2010, 2:04 PM
    • Posts 2

    Re: ApplicationPoolIdentity + SQL

    Hello,

    I had no luck in trying to create a login for the "IIS Apppool\mydefaultool)".

    Does this virtual account(Application pool identity) can be used to access the DB hosted on remote sql server?   if so how as i am not able to create a login for this account.

    Please let me know if you have any pointers on this

Page 1 of 1 (4 items)