Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
satshergill
Starting Member
2 Posts |
Posted - 2007-01-31 : 06:35:00
|
Hi allDoes anybody know of a way of Scheduling DBCC CheckDB and saving the output to txt fileI tried to schedule this via a package but couldn't find a way of outputing the results to a fileAny help??Thanks |
|
Kristen
Test
22859 Posts |
Posted - 2007-01-31 : 07:27:19
|
Tara told me recently [i.e. I believe her, but I haven't yet tried it for myself!] that if you schedule DBCC CHECKDB the task will fail if any errors are found, so if that is what you are looking for you could just set up a reliable ON FAIL action - such as emailing you, or doing some Command Prompt task (such as ECHO to a text file - in which case you could have one ECHO for Success and a different one for Fail?)Kristen |
 |
|
|
|
|