Click here to Skip to main content
15,881,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want c# windows application for send sms when any record added successfully to special table in SQL Server 2008

i have not any problem with send SMS . only want the time that SMS should send .

I want have a some windows form for set SMS Panel Setting , Contact Numbers and ... Now i want some thing like below :

1-What is best method for doing this

2-Can i create trigger from windows application and detect it when execute (i know that i can create trigger in clr project but clr project don’t have a form for UI )

3-How do i detect when trigger accured ?


I AM Novice , Please use the simple Instructions for me

Thanks a lot
Posted

1 solution

I think, you can use SQLDependency Class[^], which provides functionality to receive notifications when the data in the database have changed.

Here is an excellent example: Using SqlDependency for data change events[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900