Drops a synonym.
Remove-Synonym [-Name] <String> [-SchemaName <String>] [<CommonParameters>]
Drops an existing synonym. If the synonym doesn't exist, you'll get an error.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String | The name of the synonym to drop. |
true | false | |
SchemaName | String | The name of the synonym's schema. Default to |
false | false | dbo |
Remove-Synonym -Name 'Buzz'
Removes the Buzz
synonym.
Remove-Synonym -SchemaName 'fiz' -Name 'Buzz'
Demonstrates how to remove a synonym in a schema other than dbo
.