dbd_profiling

exec master..dbd_profiling @dbid, @on = 0 | 1, @save = 0 | 1

This function allows or prohibits SQL profiling for the specified encrypted database globally.

If @save=0 changes applied to currently loaded database settings. If database is reloaded, restored, re-attached the change is reverted.

If @save=1 the mode is set permanently.