marcingminski / sqlwatch

SQL Server Performance Monitor
https://docs.sqlwatch.io
Other
428 stars 168 forks source link

Could not find stored procedure 'dbo.usp_sqlwatch_config_sqlserver_set_blocked_proc_threshold'. #430

Closed francesco1119 closed 1 year ago

francesco1119 commented 2 years ago

Did you check DOCS to make sure there is no workaround? YES

Describe the bug In a fresh new installation of SQLWATCH, following this guide (https://docs.sqlwatch.io/configuration/basics/) if I run

--default threshold will be 15 seconds:
exec [dbo].[usp_sqlwatch_config_sqlserver_set_blocked_proc_threshold] 

I receive the error:

Msg 2812, Level 16, State 62, Line 2
Could not find stored procedure 'dbo.usp_sqlwatch_config_sqlserver_set_blocked_proc_threshold'.

Completion time: 2021-12-20T13:44:45.9039086+01:00

And is the same for all the rest of the queries. I'm running them on master

To Reproduce Steps to reproduce the behavior:

  1. Install SQLWATCH through Install-DbaSqlWatch -SqlInstance localhost -Database SQLWATCH
  2. Install also Install-DbaWhoIsActive -SqlInstance localhost -Database master
  3. Run on master
--default threshold will be 15 seconds:
exec [dbo].[usp_sqlwatch_config_sqlserver_set_blocked_proc_threshold] 

and I receive the error:

Msg 2812, Level 16, State 62, Line 2
Could not find stored procedure 'dbo.usp_sqlwatch_config_sqlserver_set_blocked_proc_threshold'.

Completion time: 2021-12-20T13:44:45.9039086+01:00

Expected behavior The query shoud execute without errors

Screenshots If applicable, add screenshots to help explain your problem.

Windows Server (please complete the following information):

SQL Server (please complete the following information):

SQL Server Management Studio (SSMS -> about -> copy info):

SQLWATCH version (from DACPAC or from sysinstances)

Additional context I'm running this non master, should I run it on another DB?

marcingminski commented 1 year ago

Hi there, What version are you using? the proc definitely exists: https://github.com/marcingminski/sqlwatch/blob/main/SqlWatch.Monitor/Project.SqlWatch.Database/dbo/Procedures/usp_sqlwatch_config_sqlserver_set_blocked_proc_threshold.sql

francesco1119 commented 1 year ago

Yes, I found it. Thank you