且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

绩效计数器

更新时间:2023-12-02 14:47:52

Hello,

https://docs.microsoft.com/zh-CN/sql/t-sql/statements/alter-database-scoped-configuration-transact- sql?view = sql-server-2017

You can use ALTER DATABASE SCOPED CONFIGURATION with arguments XTP_PROCEDURE_EXECUTION_STATISTICS and XTP_QUERY_EXECUTION_STATISTICS to clear DMVs related with store procedures and queries.

https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-database-scoped-configuration-transact-sql?view=sql-server-2017


Hope this helps.


Regards,

SQLCoffee.com

Alberto Morillo
SQLCoffee.com