Important System Stored Procedures Flashcards

1
Q

Enables collection of natively compiled stored procedures statistics

A

sp_xtp_control_proc_exec_stats

@new_collection_value = 1 to enable collection of natively compiled stored procedures statistics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Enable the collection of natively compiled query statistics

A

sp_xtp_control_query_exec_stats

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Create an application lock for a stored procedure to enable the system to only run the procedure if an application lock does not exist.

A

sp_getapplocks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Ensures a query will use the most efficient query plan

A

sp_query_store_force_plan @queryId, @planId

How well did you know this?
1
Not at all
2
3
4
5
Perfectly