mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-22 17:24:07 -05:00
Support profiling on Azure instances (#643)
* Support profiling Azure instances * Spacing fixes * Localizing error message for azure DB profiling
This commit is contained in:
committed by
GitHub
parent
838a7e4fab
commit
cc2ca4cad3
@@ -115,7 +115,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Profiler
|
||||
|| currentEvent.Name.Equals("sql_batch_starting"))
|
||||
&& currentEvent.Values.ContainsKey("batch_text"))
|
||||
{
|
||||
return currentEvent.Values["batch_text"].Contains("SELECT target_data FROM sys.dm_xe_session_targets");
|
||||
return currentEvent.Values["batch_text"].Contains("SELECT target_data FROM sys.dm_xe_session_targets")
|
||||
|| currentEvent.Values["batch_text"].Contains("SELECT target_data FROM sys.dm_xe_database_session_targets");
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user