473,473 Members | 1,552 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SqlServer Notifications to C# App ?

Hello,

Is there a way to be notified that "something happened" inside a
SqlServer Table ?

Is there a way to communicate this notification/event to a C#
application ?
Regards,
Cybertof.
Nov 15 '05 #1
3 1358
Cybertof,

You could use a trigger on each table you want to watch and then send an
appropriate message. However, I can understand that how this would be
difficult to maintain.

SQL server does have a notification service available. There is an
article on this in MSDN magazine titled "Build Apps that Provide Real-Time
Information and Customized Content Using SQL Server Notification Services",
located at (watch for line wrap):

http://msdn.microsoft.com/msdnmag/is...s/default.aspx

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"cybertof" <cy****************@gmx.net> wrote in message
news:MP************************@msnews.microsoft.c om...
Hello,

Is there a way to be notified that "something happened" inside a
SqlServer Table ?

Is there a way to communicate this notification/event to a C#
application ?
Regards,
Cybertof.

Nov 15 '05 #2
Nicholas,

I'm new to SqlServer.
In which cases are trigger used ?
Is it most of the time triggers that trigger something inside SqlServer
itself ? (procedures ? other ?)

Thanks.
Cybertof.
In article <eR**************@TK2MSFTNGP11.phx.gbl>,
mv*@spam.guard.caspershouse.com says...
Cybertof,

You could use a trigger on each table you want to watch and then send an
appropriate message. However, I can understand that how this would be
difficult to maintain.

SQL server does have a notification service available. There is an
article on this in MSDN magazine titled "Build Apps that Provide Real-Time
Information and Customized Content Using SQL Server Notification Services",
located at (watch for line wrap):

http://msdn.microsoft.com/msdnmag/is...s/default.aspx

Hope this helps.

Nov 15 '05 #3
Cybertof,

A trigger is really just a stored procedure that is called when an
operation takes place on a table (add, edit, delete). You have to set them
explicitly. From inside the trigger, you can do things like call extended
stored procedures (functions exported from DLLs) or I believe you can call
COM objects as well.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"cybertof" <cy****************@gmx.net> wrote in message
news:MP************************@msnews.microsoft.c om...
Nicholas,

I'm new to SqlServer.
In which cases are trigger used ?
Is it most of the time triggers that trigger something inside SqlServer
itself ? (procedures ? other ?)

Thanks.
Cybertof.
In article <eR**************@TK2MSFTNGP11.phx.gbl>,
mv*@spam.guard.caspershouse.com says...
Cybertof,

You could use a trigger on each table you want to watch and then send an appropriate message. However, I can understand that how this would be
difficult to maintain.

SQL server does have a notification service available. There is an
article on this in MSDN magazine titled "Build Apps that Provide Real-Time Information and Customized Content Using SQL Server Notification Services", located at (watch for line wrap):

http://msdn.microsoft.com/msdnmag/is...s/default.aspx
Hope this helps.

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dipak Patel | last post by:
Platform: Win2000 SP3, SQL 7.00 - 7.00.1063 I have a SQL-authenticated user with the following permissions: "Process Administrators" server role "db_owner" and "TargetServersRole" for msdb...
0
by: Steve | last post by:
Some of my power users create their own SQL Agent jobs. All well and good. However, I don't wish to give them System Administrator privileges, and when they create their jobs, the check box to...
0
by: Hutch | last post by:
I am looking for some thoughts on this. I have successfully gotten the HTMLControl to work using C#, and it is displaying HTML and receiving messages nicely. Unfortunately, I am not able to...
0
by: Kevin | last post by:
I am successfully creating and deleting appointments and sending invitations in a C# / ASP.NET / Exchange2000 environment. It works great! But the problem is that no notifications are sent out...
2
by: Jenniflower | last post by:
Hi Gurus, Our system is using SqlServer 2005 on XP.( On my machine,only this application access SQLServer.) The sqlserver memory is configured to 128MB (Min)~512 MB(Max) After our system get...
0
by: GovardhanReddy | last post by:
Hi Can any body help me on window service desktop alerts or notifications. My question is i am working on windows services,I need to generate desktop Notifications using my services.I did...
4
by: windypower | last post by:
I'm looking for a way to implement desktop notifications (much like an instant messaging program or a mail notifier) within my Python application, on Windows only (no Gtk/Galago, please). I need no...
5
by: njuneardave | last post by:
I have a full-screen C# app, but windows notifications (the little balloons on the bottom right-hand of the screen) and outlook reminders will pop on top of my app. i want to prevent them from...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.