Re: Sending a message from a trigger
From: BG (msnews.microsoft.com)
Date: 02/03/05
- Next message: JJ Wang: "Re: server port number"
- Previous message: Coffee guy: "RE: Newbie- help with UNION clause"
- In reply to: Gabi: "Sending a message from a trigger"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 2 Feb 2005 21:34:35 -0500
Gabi, if you absolutely had to send the message from the SQL Server to the
client you would need to xp_cmdshell and net send a message to the user
(providing you knew where to send the message to). It would be best,
however, to utilize the client side to handle this. Have the client end
check a returned value then perform the msgbox.
"Gabi" <Gabi@discussions.microsoft.com> wrote in message
news:18E225AC-445F-4BCF-A029-026E61949320@microsoft.com...
> Hi!
> Is it possible to send a message to a user when a certain condition
> becomes
> true in a trigger on a table?
> I have a SQL Server 2000 back end and a VB6 front end and I would like the
> user to be notified (through a message box) when a field in a table has a
> specific value. Right now I have a timer that queries the table every 5
> seconds, but I would like to create a trigger instead and send a message
> to
> the user when the condition becomes true.
>
> Thank you!
- Next message: JJ Wang: "Re: server port number"
- Previous message: Coffee guy: "RE: Newbie- help with UNION clause"
- In reply to: Gabi: "Sending a message from a trigger"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|