• francesco.mantovani - Wednesday, July 26, 2017 5:47 PM

    Yes, you were right, I was in a Master but then run the same script on a database and I received the same error

    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