Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying an application containing SQL Server database. Which authentication method?

I'm just a beginner in SQL Server database development and was wondering which authentication method to use. My database needs to have the simplest protection there is.

If I choose Windows authentication, what username and password do I pass when connecting to the database? What will happen when another user installs the application on his computer with different credentials?

I'm real beginner, so please excuse me if I'm asking the obvious.

like image 949
Nikola Malešević Avatar asked Jul 22 '26 22:07

Nikola Malešević


1 Answers

If I choose Windows authentication, what username and password do I pass when connecting to the database?

You use the domain login & password for the profile you wish to connect to the database as.

What will happen when another user installs the application on his computer with different credentials?

Depends on how you setup the domain account/role association with the SQL Server role/permissions. Assuming same AD groups, there shouldn't be an issue. This is why you should grant to a role, rather than specific users.

like image 146
OMG Ponies Avatar answered Jul 25 '26 13:07

OMG Ponies



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!