This is mostly a clean up issue and probably only relates to MS SQLServer. I have a couple of scheduled tasks that run nightly that do a database check. Everything runs fine but dbcc has an annoying habit of showing a failure for these tasks with an error 2528: "DBCC execution completed. If DBCC printed error messages, see your System Administrator". The error message is basically useless and it flags a failure in the scheduled task display, being a general annoyance to finding scheduled tasks that really did fail.

Anyone know a work around to prevent it from flagging failure when it actually ran ok? The WITH NO_INFOMSGS doesn't seem to help but it's the only thing I've found close.

Thanks.