ÿþ<html> <head> <title>Get-SqlIndex</title> </head> <body> <h1>Get-SqlIndex</h1> <div>Gets an SMO Index object.</div> <h2> Syntax </h2> <code>Get-SqlIndex [-table] &lt;Object&gt; [&lt;CommonParameters&gt;]</code> <h2> Detailed Description </h2> <div> The Get-SqlIndex function gets a collection of SMO Index objects for the specified table or view. </div> <h2> Related Commands </h2> <div> * <a href='Get-SqlIndex.htm'>Get-SqlIndex</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>table&nbsp;</td> <td>&nbsp;</td> <td>true&nbsp;</td> <td>true (ByValue)&nbsp;</td> <td>&nbsp;</td> </tr> </table> <h2> Input Type </h2> <div>Microsoft.SqlServer.Management.Smo.Table or Microsoft.SqlServer.Management.Smo.View You can pipe SMO objects to Get-SqlIndex</div> <h2> Return Values </h2> <div>Microsoft.SqlServer.Management.Smo.Index Get-SqlIndex returns a Microsoft.SqlServer.Management.Smo.Index object.</div> <h2> Notes </h2> <div>Additional properties including the database, server and extended properties are included in the output.</div> <h2> Examples </h2> <h3> EXAMPLE 1</h3> <pre>Get-SqlDatabase "Z002\sql2k8" "pubs" | Get-SqlTable -name "authors" | Get-SqlIndex</pre> <div>This command gets a collection of SMO Index objects for the authors table.</div> </body> </html>