diff --git a/install/47_create_reporting_views.sql b/install/47_create_reporting_views.sql index c9a6023f8..11d18522e 100644 --- a/install/47_create_reporting_views.sql +++ b/install/47_create_reporting_views.sql @@ -863,7 +863,7 @@ WITH SELECT sort_order = 70, metric_name = N'worst_query_hash', - metric_value = CONVERT(sql_variant, wq.query_hash) + metric_value = CONVERT(sql_variant, CONVERT(nvarchar(20), wq.query_hash, 1)) FROM worst_query AS wq UNION ALL