sp_msgadmin 'default'  Chapter 5: Real Time Data Functions

Chapter 4: Real Time Stored Procedures for Administration

sp_msgadmin 'remove'

Description

Removes the specified message provider, login, or subscription.

Syntax

 sp_msgadmin 'remove’, 'provider’, provider_name
 sp_msgadmin ’remove’, ’login’, provider_name, local_login 
       [, role_name]
 sp_msgadmin ’remove’, ’’subscription’’, subscription_name

Parameters

‘provider’

Removes a messaging provider previously defined by this call:

sp_msgadmin ’register’, ’provider’, provider_name
provider_name

The name of the messaging provider from which the specified login is removed.

‘login’

Removes the mapping previously created between an Adaptive Server login and a service provider login, defined by this call:

sp_msgadmin ’register’, ’login’, local_login,... 
local_login

The mapping to the Adaptive Server login that you are removing.

role_name

The name of the SQL role specified.

‘subscription’

Removes a subscription previously created by this call:

sp_msgadmin ’register’, ’subscription’, subscription_name, ...
subscription_name

The name of the subscription to remove.

Examples

Example 1

Removes the messaging provider “my_jms_provider”:

sp_msgadmin ’remove’, ’provider’, ’my_jms_provider’

Example 2

Removes the Adaptive Server login “ase_login1”associated with the messaging provider “my_jms_provider”:

sp_msgadmin ’remove’, ’login’, ’my_jms_provider’,’ase_login1’

Example 3

Removes the default login, indicated by a null login parameter:

sp_msgadmin ’remove’, ’login’, ’my_jms_provider’,null

Example 4

Removes all logins for role “sa_role” on “my_jms_provider”:

sp_msgadmin ’remove’, ’login’, ’my_jms_provider’,null, ’sa_role’

Example 5

Removes the subscription “subscription_1”:

sp_msgadmin ’remove’, ’subscription’, ’subscription_1’

Usage

Permissions

You must have messaging_role and sso_role permissions to issue sp_admin 'remove'.





Copyright © 2004. Sybase Inc. All rights reserved. Chapter 5: Real Time Data Functions

View this book as PDF