c# - Changing connection string from SQL Server to windows authentication -
/ P> (not working) Can anyone help me on this? ASP.NET applications do not impersonate by default. As a result, when they use Windows authentication to connect to SQL Server, they use the process identification of web applications. With this approach, your front-end web application has authenticated and authorized its users and then uses a trusted identity to access the database. Database relies on the identity of the application and relies on an application to properly validate and authorize callers. To connect to SQL Server using Windows authentication, follow these steps: Step 1. Configure the connection string. Trusted Connection = Yes feature, or equivalent attribute integrated security = SSPI, in connection string used with Windows authentication Step 2. Configure SQL Server Security: You need to create your SQL Server login application Service account, and restricted permissions to access your database. The service account of the application is usually either the network service account, which is the default account used to run ASP.NET application pool on Windows Server 2003 and IIS 6.0 or custom service account. Do this for the following -
Integrated Security = True is for Windows authentication, but the connection is not established. /p>
a). Create a SQL Server login for your app's account. B). Login to a database user in the required database. C). Provide appropriate permissions
Comments
Post a Comment