Re: Database events - notify an application
From: lindawie (lindawie_at_my-deja.com)
Date: 03/11/04
- Next message: oj: "Re: Using UDF in a default constraint"
- Previous message: oj: "Re: Problem in connecting after service pack 3a installed in MSDE 2000"
- In reply to: Mike Hildner: "Database events - notify an application"
- Next in thread: Mike Hildner: "Re: Database events - notify an application"
- Reply: Mike Hildner: "Re: Database events - notify an application"
- Reply: Mike Hildner: "Re: Database events - notify an application"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 10 Mar 2004 19:42:47 -0800
Mike,
> I have an application that polls the db every few seconds to
> refresh the data. Would like to change so that the db sends a
> message to my app when something interesting happens
> (insert/update etc.).
>
> I've looked into sp_addmessage, raiseevent etc, but it seems
> limited to pager, email and net send. I don't think I want to do
> net send as it may be disabled and don't want to trap all net
> send messages on the client.
>
> So I was thinking of writing and extended sp that, say, would
> send a message via udp, this xp would get called via triggers.
>
> Am I on the right track, or are their smarter ways to do this?
> sql server 2000.
You could look at Notification Services:
http://www.microsoft.com/sql/ns/default.asp
Or you could write a simple console application that notifies your
application when something interesting happens. Create a SQL Server
Agent job to run the notifier. Execute sp_start_job in your triggers
to run the notifier asynchronously so it will not impact your
database transaction.
Linda
- Next message: oj: "Re: Using UDF in a default constraint"
- Previous message: oj: "Re: Problem in connecting after service pack 3a installed in MSDE 2000"
- In reply to: Mike Hildner: "Database events - notify an application"
- Next in thread: Mike Hildner: "Re: Database events - notify an application"
- Reply: Mike Hildner: "Re: Database events - notify an application"
- Reply: Mike Hildner: "Re: Database events - notify an application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|