Export (0) Print
Expand All
Expand Minimize

DROP MESSAGE TYPE (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Drops an existing message type.

Applies to: SQL Server (SQL Server 2008 through current version).

Topic link icon Transact-SQL Syntax Conventions

DROP MESSAGE TYPE message_type_name
[ ; ]

message_type_name

The name of the message type to delete. Server, database, and schema names cannot be specified.

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.

You cannot drop a message type if any contracts refer to the message type.

The following example deletes the //Adventure-Works.com/Expenses/SubmitExpense message type from the database.

DROP MESSAGE TYPE [//Adventure-Works.com/Expenses/SubmitExpense] ;
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft