SQL Server Developer Center > SQL Server Forums > SQL Server Notification Services > Event/trigger/notification from the sql server 2005 to C# application
Ask a questionAsk a question
 

AnswerEvent/trigger/notification from the sql server 2005 to C# application

  • Monday, August 31, 2009 4:40 PMMaverickcoder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Experts,

    I am new to sql stuff. Please if you could guide me, I have a table that gets the data about status of machines and its connected devices, continousouly (large chunk of data).  All the data is in the table in binary form. Suppose if device is active its bit is set as 1 otherwise 0.

    My problem is when 1 bit data is entered in the table for a particular device, i.e device is active, c# application should tell/notifies the user, device is active or vice versa.

    So I am thinking to put trigger on my table that check after insert sql query if the particular bit is entered 1. If yes then tell the user. But how C# application will come to know the result of the trigger operation on table? Any code example would be helpful.

    Thanks n regards,

    Maverick

Answers

All Replies