SHOWPLAN permission denied in database ‘master’.
Tricky lil’ bugger this one.
We hit this error when trying to run a Estimated Query Plan on a users’ query. Didn’t make any sense since we’re SysAdmin’s on the server; doubly-so since we could run a showplan elsewhere.
Turns out the offender in question was a call to msdb.dbo.sp_send_dbmail. Apparently bad funky things happen there if one tries a showplan on it. To solve it we simply commented out the call to the sendmail procedure out and then, the sky’s did doth part and our estimated query plan presented itself unto us..
Good to know…
Advertisement
Categories: Grumbles, Sql Server