ÿþ<html> <head> <title>Remove-SqlUser</title> </head> <body> <h1>Remove-SqlUser</h1> <div>Removes a user from a database.</div> <h2> Syntax </h2> <code>Remove-SqlUser [[-sqlserver] &lt;Object&gt;] [-dbname] &lt;Object&gt; [-name] &lt;String&gt; [&lt;CommonParameters&gt;]</code> <h2> Detailed Description </h2> <div> The Remove-SqlUser function removes a user from the specified database. </div> <h2> Related Commands </h2> <div> * <a href='Remove-SqlUser.htm'>Remove-SqlUser</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>sqlserver&nbsp;</td> <td>&nbsp;</td> <td>false&nbsp;</td> <td>false&nbsp;</td> <td>&nbsp;</td> </tr> <tr valign='top'> <td>dbname&nbsp;</td> <td>&nbsp;</td> <td>true&nbsp;</td> <td>false&nbsp;</td> <td>&nbsp;</td> </tr> <tr valign='top'> <td>name&nbsp;</td> <td>&nbsp;</td> <td>true&nbsp;</td> <td>false&nbsp;</td> <td>&nbsp;</td> </tr> </table> <h2> Input Type </h2> <div>None You cannot pipe objects to Remove-SqlUser</div> <h2> Return Values </h2> <div>None This function does not generate any output.</div> <h2> Examples </h2> <h3> EXAMPLE 1</h3> <pre>Remove-SqlUser "Z002\sql2k8" "pubs" "TestPSUnit"</pre> <div>This command Removes the TestPSUnit user from the pubs database.</div> <h3> EXAMPLE 2</h3> <pre>$database = Get-SqlDatabase "Z002\sql2k8" "pubs" Remove-SqlUser -dbname $database "TestPSUnit"</pre> <div>This command Removes the TestPSUnit user from the pubs database.</div> </body> </html>