asp.net windows authentication to sql server

前端 未结 5 1990
闹比i
闹比i 2021-01-14 15:44

I can not seem to get sql server to recognize my credentials.

Asp.net recognizes me when I login but when I execute a sql command I get a login failed message.

5条回答
  •  無奈伤痛
    2021-01-14 16:21

    Are your ISS server and SQL Server running on the same machine?

    If not, Active Directory has to be configured to allow your IIS server to impersonate your accout towards the SQL Server. See How To: Use Protocol Transition and Constrained Delegation in ASP.NET 2.0.

提交回复
热议问题