amachanic / sp_whoisactive

sp_whoisactive
GNU General Public License v3.0
1.18k stars 290 forks source link

SQL 2019 errors #114

Closed dca00 closed 8 months ago

dca00 commented 10 months ago

sp_whoisactive used to run fine on previous versions but on SQL 2019 I get the following errors. It was compiled by sa and runs also under sa account. I added with execute as owner as well.

Msg 15562, Level 16, State 2, Line 42
The module being executed is not trusted. Either the owner of the database of the module needs to be granted authenticate permission, or the module needs to be digitally signed.
Msg 15562, Level 16, State 2, Line 335
The module being executed is not trusted. Either the owner of the database of the module needs to be granted authenticate permission, or the module needs to be digitally signed.

What is required to run it without hiccups?

mfuller333 commented 10 months ago

Sounds like the database you created the stored procedure in is not set to trustworthy.