ÿþ<html> <head> <title>Invoke-SqlDatabaseCheck</title> </head> <body> <h1>Invoke-SqlDatabaseCheck</h1> <div>Performs a database consistency check.</div> <h2> Syntax </h2> <code>Invoke-SqlDatabaseCheck [-database] &lt;Database&gt; [&lt;CommonParameters&gt;]</code> <h2> Detailed Description </h2> <div> The Invoke-SqlDatabaseCheck function performs a database consistency check of the specified database. </div> <h2> Related Commands </h2> <div> * <a href='Invoke-SqlDatabaseCheck.htm'>Invoke-SqlDatabaseCheck</a><br/> </div> <h2> Parameters </h2> <table border='1'> <tr> <th>Name</th> <th>Description</th> <th>Required?</th> <th>Pipeline Input</th> <th>Default Value</th> </tr> <tr valign='top'> <td>database&nbsp;</td> <td>&nbsp;</td> <td>true&nbsp;</td> <td>true (ByValue)&nbsp;</td> <td>&nbsp;</td> </tr> </table> <h2> Input Type </h2> <div>None You can pipe SMO Database objects to Invoke-SqlDatabaseCheck</div> <h2> Return Values </h2> <div>None This function does not generate any output.</div> <h2> Notes </h2> <div>Performs the equivalent of a DBCC CHECKDB.</div> <h2> Examples </h2> <h3> EXAMPLE 1</h3> <pre>Get-SqlDatabase "Z002\sql2k8" "pubs" | Invoke-SqlDatabaseCheck</pre> <div>This command performs a database consistency check of the pubs database.</div> </body> </html>