Unix Technical Forum

Re: Notifying a client application from SQL-Server

This is a discussion on Re: Notifying a client application from SQL-Server within the SQL Server forums, part of the Microsoft SQL Server category; --> Terry Chilvers (terry.chilvers@ntlworld.com) writes: > Is it possible to notify a connected client application when specific > events occur ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:39 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Notifying a client application from SQL-Server

Terry Chilvers (terry.chilvers@ntlworld.com) writes:
> Is it possible to notify a connected client application when specific
> events occur in SQL-Server? For example, if data is changed in a
> particular table, I would like a trigger to execute for the change, and
> for a connected application to be alerted to the fact that something had
> changed, rather than polling certain tables.


There is no built-in support. You could use a trigger that calls an
extended stored procedure (XP) or an OLE object that performs the
notification. The notification should probably not contain the data itself,
but instruct the client how to get the data.

But there are a couple of caveats writing XPs and calling them from
triggers, so be careful.

--
Erland Sommarskog, SQL Server MVP, sommar@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:57 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com