all groups > sql server mseq > july 2005 >
You're in the

sql server mseq

group:

Execute StoreProcedue in SQL2000 every time i received a replay me


Execute StoreProcedue in SQL2000 every time i received a replay me Renato Ribeiro
7/26/2005 7:54:03 AM
sql server mseq:
Hi,
how can i execute a StoreProcedue in SQL2000 every time i received a replay
message with a specific subject, and pass some arguments like the subject.


thank in advanced,

Renato Ribeiro
Re: Execute StoreProcedue in SQL2000 every time i received a replay me Hari Prasad
7/27/2005 12:29:23 AM
Hi,

1. Create a Task to execute stored procedure
2. Create a message (SP_ADDMESSAGE) to create the subject
3. Using the message ID and Task name create a alert using SP_ADDALERT
4. Trigger the message using RAISERROR statement.

This will automatically fire the Task to execute the stored procedure

Thanks
Hari
SQL Server MVP

[quoted text, click to view]

AddThis Social Bookmark Button