Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
启用对请求计时信息的记录。
dbsrv16 -zt ...
所有操作系统和数据库服务器。
指定 -zt 选项可将 RequestTiming 属性设置为 On。打开请求计时后,可以使用 sa_performance_diagnostics 系统过程来检索存储请求计时信息的属性的所有值。
以下属性仅在打开 RequestTiming 时返回请求计时信息。否则,属性将返回 NULL。除 ReqStatus 外的所有属性均为连接属性、数据库属性和服务器属性。由于数据库或服务器已启动,并且这些数据库和服务器属性仅在启用 RequestTiming 的情况下返回信息,所以数据库和服务器属性是连接值的集合。
使用以下查询可获得 RequestTiming 设置的当前值:
SELECT PROPERTY( 'RequestTiming' );