Click here to Skip to main content
15,902,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm doing a website for someone, I want to ask you guys, when I connect to sql server database which better to use SQL Authentication or windows Authentication. and why?
Thanks a lot.
Posted

If the web server is not on the LAN with the user, you should use SQL authentican. Otherwise, it's okay to use Windows authentication. You don't want to use Windows authentication for remote servers.
 
Share this answer
 
To add to previous answers, one reason to use SQL authentication is if you have users that are not in your domain. So if you want you can mix both authentication types.
 
Share this answer
 
This answer[^] might help you.
and must read this CP article ASP.NET authentication and authorization[^] to understand where to use which kind of authentication.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900