Remove-SqlDatabase

Removes a database from a SQL Server.

Syntax

Remove-SqlDatabase [-sqlserver] <Object> [-dbname] <String> [<CommonParameters>]

Detailed Description

The Remove-SqlDatabase function removes the specified database from SQL Server.

Related Commands

* Remove-SqlDatabase

Parameters

Name Description Required? Pipeline Input Default Value
sqlserver    true  false   
dbname    true  false   

Input Type

None You cannot pipe objects to Remove-SqlDatabase

Return Values

None This function does not generate any output.

Examples

EXAMPLE 1

Remove-SqlDatabase "Z002\sql2k8" "NorthwindTestRestore"
This command removes the NorthwindTestRestore database.