![]() |
home
articles
news
code
blog
links
search
| ||
![]() ![]() ![]() |
Overview In this series of articles, I'll demonstrate how to use SMO (SQL Management Objects) to do a variety of common DBA tasks including Backups, Restores,Index Maintenance, Integrity checks and more. These are some of the operations available in the SMO database maintenance utility available on this site - ExpressMaint. In this article we will concentrate on how to examine database integrity using SMO in SQL2005. For information on how to build and compile a SMO application please review Getting Started with SMO in SQL 2005. Checking Database Integrity Integrity checks in SMO are methods of the Database object. The table below shows the SMO method and equivalent TSQL command.
All the methods in the table above return a StringCollection. We can iterate through this collection to return the results of the integrity check as demonstrated in the following code samples.
Related Articles Getting Started with SMO in SQL 2005 Getting Started with SMO in SQL 2005 - Backups Getting Started with SMO in SQL 2005 - Restores Getting Started with SMO in SQL 2005 - Verifying Backups
|
||||||||||||||||||||||||||||||||
| © Copyright sqldbatips Ltd 2008. Contact webmaster | home | news | articles | code | blog | links | search | |