Hello!I have some mediumsized databases that I want to automatically run DBCC CHECKDB on during off hours and before backups. Also, being lazy (yeah, trying to show off myself asa good DBA :), I only want to be hassled if something is wrong, not otherwise.So, how do I redirect the output from DBCC CHECKDB ?The best would be if I could pipe the output to a fileand then run some regexp in perl. But I have not founda way to do that.So then comes "DBCC CHECKDB WITH TABLERESULTS" along.To which, of course, the output is not documented anywhere.So my question is if the following code is safe:[KLUDGE WARNING ON] create table result(col1 int,col2 int, col3 int, messagetext varchar(1000), col5 int,col6 int,col7 int, col8 int, col9 int,col10 int,col11 int,col12 int, col13 int,col14 int, col15 int, col16 int) insert into result exec('dbcc checkdb(@DBNAME) with tableresults') if (select count(*) from result where messagetext Like '%0 allocation errors and 0 consistency error in database%' ) > 0 EXEC SEND_EMAIL_WITH_WARNING[/KLUDGE WARNING ON]Either that, or are there other and better waysto fetch the output of DBCC CHECKDB?Best regards,Moussie