1、SQL Server的身份验证模式。
Windows身份验证模式。
SQL Server和Windows身份验证模式(混合验证模式)。
Windows身份验证模式:当使用Windows用户验证时,SQL Server会使用操作系统中的Windows用户和密码。
SQL Server和Windows身份验证模式:SQL Server和Windows身份验证模式也称为混合验证模式,允许用户使用Windows身份验证或SQL Server身份验证进行连接。
2、SQL Server登录账户提供了以下安全密码策略。
1、强制实施密码策略
2、强制密码过期
3、用户在下次登录时必须更改密码
2.1、固定数据库角色及其权限:
3、实验案例。
3.1、实验环境:
某公司部署了SQL Server 2016用来存储网站数据,由系统管理员进行维护。
3.2、需求描述:
赋予用户zhangsan在bdqn数据库中创建表的权限和对class表查询和更新数据的权限。
3.3、实验步骤:
1、在数据库中创建好用户"zhangsan"

2、点击实例下的安全性--新建登录名。

3、选择用户"zhangsan"

4、点击数据库"bdqn",然后点击"安全性--用户--新建用户"

5、设置好用户名、登录名

6、点击实例下的"安全性",然后找到"zhangsan"点击"属性"

7、点击"用户映射",选择两个权限第一个是"可以执行select"、第二个是"可以执行delete、insert、update"

8、找到数据库bdqn的表,点击属性

9、选择赋予"更新"

10、点击bdqn属性,权限--选择zhangsan--赋予创建表
3.4、使用zhangsan登录SSMS管理工具,创建数据表

3.5、使用select查看、update更新数据再用delete删除
