c# - Changing connection string from SQL Server to windows authentication -


/ P> name = "GCDataContext" connectionString = "data source = 111.78.152.64; initial catalog = gc; user id = s; password = xxxx; reliable connection connection = false; continue security information = true; multiple nonactive Resetset = True "ProvisionName =" System.Data SQL Client "/> Change in

(not working)

     

Can anyone help me on this?

Integrated Security = True is for Windows authentication, but the connection is not established. /p>

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 -

  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

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -