francesco.mantovani - Wednesday, July 26, 2017 5:47 PM
I can get the error too if I'm not in msdb. The table is in the msdb databse. That is the database you need to be in when you execute it. At the beginning of the script, before the select, add the following before the select and then try executing it. It's doesn't pull all of the information correctly but it should run:
USE msdb
go
Sue