DROP MESSAGE TYPE (Transact-SQL)
Applies to: SQL Server Azure SQL Managed Instance
Drops an existing message type.
Transact-SQL syntax conventions
Syntax
DROP MESSAGE TYPE message_type_name
[ ; ]
Note
To view Transact-SQL syntax for SQL Server 2014 (12.x) and earlier versions, see Previous versions documentation.
Arguments
message_type_name
The name of the message type to delete. Server, database, and schema names cannot be specified.
Permissions
Permission for dropping a message type defaults to the owner of the message type, members of the db_ddladmin or db_owner fixed database roles, and members of the sysadmin fixed server role.
Remarks
You cannot drop a message type if any contracts refer to the message type.
Examples
The following example deletes the //Adventure-Works.com/Expenses/SubmitExpense
message type from the database.
DROP MESSAGE TYPE [//Adventure-Works.com/Expenses/SubmitExpense] ;
See Also
ALTER MESSAGE TYPE (Transact-SQL)
CREATE MESSAGE TYPE (Transact-SQL)
EVENTDATA (Transact-SQL)
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir