I'm very much learning about SQL as I'm going along. Visual Studio makes it very easy to get the basics done, but now I want to publish a site, and I need some advice with regards to SQL security.
This is my connection string:
<add name="MyConnectionString"
providerName="System.Data.EntityClient"
connectionString="metadata=
res://*/;
provider=System.Data.SqlClient;
provider connection string='
Data Source=localhost;
Initial Catalog=MyDb;
Integrated Security=False;
User Id=MyUser;
Password=MyPassword;
MultipleActiveResultSets=True'" />
As you can see, this does not use integrated security and exposes a user name and password in the web.config file. I understand that this is probably not the best solution, but I'm at a loss to what is.
I have 3 questions:
Thanks in advance.
Make sure, that the Windows user's password does not expire (enforce password policy = no).