Support profiling on Azure instances (#643)

* Support profiling Azure instances

* Spacing fixes

* Localizing error message for azure DB profiling
This commit is contained in:
Madeline MacDonald
2018-06-26 10:55:30 -07:00
committed by GitHub
parent 838a7e4fab
commit cc2ca4cad3
6 changed files with 73 additions and 7 deletions

View File

@@ -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;