User-707554951 posted
Hi tangara,
In your web.config, your connection string should like below:
<connectionStrings>
<add
name="MyConnectionString"
connectionString="Data Source=\sqlexpress;Initial
Catalog=MyDatabase;User ID=userName;Password=password"
providerName="System.Data.SqlClient"
/>
</connectionStrings>
Data Source is your server name.
Initial Catalog is the default database queries should be executed against. For normal uses, this will be the database name.
For the authentication, we have a few options.
User ID and Password means using SQL credentials, not Windows, but still very simple - just go into your Security section of your SQL Server and create a new Login. Give it a username and password, and give it rights to your database. All the basic dialogs
are very self-explanatory.
1.open sql server 2016. click connect to server.
2.change Authentication to SQL credentials. set user name and password.
You can also use integrated security, which means your .NET application will try to connect to SQL using the credentials of the worker process.Check here
for more info on that.
Best regards
Cathy