How i can invoke C# method when sql trigger is fired ???
how i can invoke or call C# method when sql trigger is fired ???
plz i need help .
this is the first time for me here
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 8, 2009, 1:19 PM EDT
Thank you :)
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 8, 2009, 12:45 PM EDT
can you tell me in which scenario need this type of code ? explain a lil bit more so that i can better understand your requirement :)
thank you
abas shahen50 reputationPosted Aug 8, 2009, 12:57 PM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 8, 2009, 1:09 PM EDT
There is Noway you can invoke C# method using SQL Server but try idea like this
if tutor Uses C# Desktop application then
make also Tutor table For Showing Alert to Him When Student Submit His Assignment at that time Insert Message into TutorTable
Like Tutor(StudentId, ReadedAlert)
here Readed alert is only two value "True" or "False"
so when tutor Reads That Message in That Window and mark Alert as readed press "Ok" and that that record's AlertReaded updated in the TutorTable
now Tutor Application Checks for Unreaded Alerts for Some Time Intervals using timer and Fetch Records in Which ReadedAlert Field in Table is "False"
abas shahen50 reputationPosted Aug 8, 2009, 1:14 PM EDT
abas shahen50 reputationPosted Aug 8, 2009, 1:35 PM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Aug 8, 2009, 1:51 PM EDT
Thanks Again :)