Enables collection of natively compiled stored procedures statistics
sp_xtp_control_proc_exec_stats
@new_collection_value = 1 to enable collection of natively compiled stored procedures statistics
Enable the collection of natively compiled query statistics
sp_xtp_control_query_exec_stats
Create an application lock for a stored procedure to enable the system to only run the procedure if an application lock does not exist.
sp_getapplocks
Ensures a query will use the most efficient query plan
sp_query_store_force_plan @queryId, @planId