Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. DDL or CLR Trigger sample ?

DDL or CLR Trigger sample ?

Scheduled Pinned Locked Moved C#
databasecsharpdotnettutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohammad Dayyan
    wrote on last edited by
    #1

    Hi guys, I have a Table (TableTest) in a Database (database1) in SQLExpress 2008. I wanna to call a method in C# whenever something is inserted in the Table. Could you please guide me? It would be great if you post a sample code. Thanks.

    P 1 Reply Last reply
    0
    • M Mohammad Dayyan

      Hi guys, I have a Table (TableTest) in a Database (database1) in SQLExpress 2008. I wanna to call a method in C# whenever something is inserted in the Table. Could you please guide me? It would be great if you post a sample code. Thanks.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      I normally use a SqlNotification to accomplish this. Take a look here[^].

      I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

      Forgive your enemies - it messes with their heads

      My blog | My articles | MoXAML PowerToys | Onyx

      E 1 Reply Last reply
      0
      • P Pete OHanlon

        I normally use a SqlNotification to accomplish this. Take a look here[^].

        I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

        Forgive your enemies - it messes with their heads

        My blog | My articles | MoXAML PowerToys | Onyx

        E Offline
        E Offline
        Elfman_NE
        wrote on last edited by
        #3

        I am building a WEBSERVICE that will listen for PUSH NOTIFICATION from MS Exchange. What I was hoping to do is use the Query Notifications capability too be notified of changes to to specific data in SQL Server. 1. How specific are the SqlNotificationEventArgs that are raised to the dependency? 2. Could/Would it tell me anything specific about the event that triggered the notification? Insert/Update/delete and the primary key of the item? Thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups