Results 5 comments of ms

BUT.. there are not many updates recently. ![image](https://user-images.githubusercontent.com/12115808/186964539-4997e831-dd67-437e-acce-531306eb0b6f.png) ![image](https://user-images.githubusercontent.com/12115808/186964435-e7469b8a-ced6-45b9-94d3-23a85007b256.png)

I think the problem is more serious than the message says. I changed the "order by", but still had other problems. It needs more analyze to fix. I wrote to...

Unfortunately, my panels still have errors. ![image](https://user-images.githubusercontent.com/12115808/138801464-082601b2-b42d-494e-ba2a-d4872c04c32e.png) ![image](https://user-images.githubusercontent.com/12115808/138801638-6209c3ac-ef72-4b60-b30f-a96807b7cc8e.png) I have no time to check and to fix it, I use Grafana old version, and it is okay.

This is my suggestion ```sql GO if ((SELECT COUNT(*) FROM [dbo].[sqlwatch_config_snapshot_type] where [snapshot_type_id] in (32, 33, 34)) = 0 ) begin insert into [dbo].[sqlwatch_config_snapshot_type] ([snapshot_type_id], [snapshot_type_desc], [snapshot_retention_days], [collect]) select 32...

There is a variable declaration, but it is not used. Possibly it was a feature that was not finished. ![image](https://user-images.githubusercontent.com/12115808/142626514-618d8355-4098-4327-843a-4d138016a855.png)