what is the differences between sql server authentication and windows authentication..?

前端 未结 10 685
深忆病人
深忆病人 2020-12-08 09:52

what is the difference between sql server authentication and windows authentication...Is there any specific situation of using each authentication?

10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-08 10:29

    I think the main difference is security.

    Windows Authentication means that the identity is handled as part of the windows handashaking and now password is ever 'out there' for interception.

    SQL Authentication means that you have to store (or provide) a username and a password yourself making it much easier to breach. A heap of effort has gone into making windows authentication very robust and secure.

    Might I suggest that if you do implement Windows Authentication use Groups and Roles to do it. Groups in Windows and Roles in SQL. Having to setup lots of users in SQL is a big pain when you can just setup the group and then add each user to the group. (I think most security should be done this way anyway).

提交回复
热议问题