您管理 SQL Server 2008 实例 。安全策略仅允许 windows 组 CONTOSO\Sales 的成员在 07:00至 19:00之间的工作时间内与SQL Server 实例建立新连接 。其他用户可以随时连接到 SQL Server 实例。您编写以下 Transact-SQL 语句。 Create table security .restrictedlogonhours ( Id int not null identity (1,1) , Groupname sysname not null, Restrictedtimestart time not null , Restrictedtimestop time not null Constraint restrictedlogonhours_pk Primary key clustered (id) ); Insert into security .restrictedlogonhours (Groupname,Restrictedtimestart,Restrictedtimestop) Values(‘contoso\sales,Cast(’07:00’ as time ),Cast(’19:00’ as time )); 您需要实现存储在 restrictedlogonhours 表中的公司安全策略 。您应该如何操作?
A.. 创建一个 logon 触发器, 拒绝在非工作时间连接到 contoso\sales组 。
B.创建一个 sql server 代理作业, 使 sql server windows 服务在非工作时间暂停
C.创建一个 sql server 代理作业, 定期查找和断开contoso\sales 组在非工作时间建立的连接
D.创建一个策略,使用基本“服务器审核” 方面的条件 。使用该策略拒绝在非工作时间连接到contoso\sales 组
正确答案是A