Posted: Tue Nov 25, 2008 5:45 am Post subject: delete msgs from a Queue
Novice
Joined: 10 Nov 2008 Posts: 12
i want to wirte a program that can clear whole qeue or if it can delete some specified number of msg eg from 1-10 tell me which method will be better n for me pcf commands or using get with syncpoint options
how can i delete a specified num of msgs through pcf commands
Posted: Tue Nov 25, 2008 5:53 am Post subject: Re: delete msgs from a Queue
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
ammar wrote:
i want to wirte a program that can clear whole qeue or if it can delete some specified number of msg eg from 1-10 tell me which method will be better n for me pcf commands or using get with syncpoint options
Use get - it's easier in terms of security. If you're clearing the queue (or positively deleting messages) why use syncpoint?
And why delete based on number? Why not age and/or content? _________________ Honesty is the best policy.
Insanity is the best defence.
Posted: Tue Nov 25, 2008 6:00 am Post subject: Re: delete msgs from a Queue
Novice
Joined: 10 Nov 2008 Posts: 12
Vitor wrote:
ammar wrote:
i want to wirte a program that can clear whole qeue or if it can delete some specified number of msg eg from 1-10 tell me which method will be better n for me pcf commands or using get with syncpoint options
Use get - it's easier in terms of security. If you're clearing the queue (or positively deleting messages) why use syncpoint?
And why delete based on number? Why not age and/or content?
Get with what getmessageoptions because i now only syncpoint or browsemessageundercursor are there any other options for deleting messages
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum