sp_confighistory create_view
<begin_date>[, <end_date>]]
last[<items_num>]
{area | type | target | element}[, <item_name>]
help
create_view
指示正在创建 ch_events 视图。
<begin_date>, [<end_date>]
显示从 <begin_date> 值到 <end_date> 值的所有项目。
last
显示最新的配置历史记录项目。
<items_num>
要从最新的配置历史记录项目列表中显示的项目数。
area | type | target | element
显示指定区域内的项目:
area – 可审计事件发生的区域。下列各项之一:
server – 服务器级别事件。
database – 数据库级别事件。
cache – 高速缓存级别事件。
traceflag – dbcc traceflag 和 set switch 事件。
SUSD – 启动/关闭。
audit – 审计状态更改。
type – 可审计事件的类型。下列各项之一:
sp_configure
sp_serveroption
sp_dboption
sp_cacheconfig
sp_poolconfig
create thread pool
alter thread pool
drop thread pool
dbcc traceflag
set switch
configuration file change
startup
shutdown
shutdown with wait
shutdown with nowait
abrupt shutdown
global auditing
config history auditing
target – 更改应用的目标对象的名称(例如,服务器、高速缓存、线程池、数据库名称、跟踪标志编号等)。
element – 配置或其它选项的名称(例如,“enable monitoring”、“config pool: 4K, option: wash size”等)。
help
显示 sp_confighistory 的用法信息。