If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > Clear queue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-11, 09:06
jackmazurek jackmazurek is offline
Registered User
 
Join Date: Mar 2011
Location: Poland
Posts: 19
Question Clear queue

Hi,

What is a command that will clear all data from queue on replication server?
I know that it exists but I don't remember how it goes :/
Reply With Quote
  #2 (permalink)  
Old 06-29-11, 02:55
jackmazurek jackmazurek is offline
Registered User
 
Join Date: Mar 2011
Location: Poland
Posts: 19
So I will reply myself:

Purges all messages from a stable queue.
Syntax:
sysadmin sqm_purge_queue, q_number, q_type

Parameters:
q_number, q_type

Identifies the stable queue to be purged. Find these using admin who, admin who, sqm, or admin who, sqt.

Example:

Purges all messages from inbound queue number 103:

sysadmin sqm_purge_queue, 103, 1
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On