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. inform app of changes in database content

inform app of changes in database content

Scheduled Pinned Locked Moved C#
databasesql-serversysadminquestionannouncement
6 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.
  • Z Offline
    Z Offline
    zt Prog
    wrote on last edited by
    #1

    The database is on server(sql server 2000). The application run on the client pc's. How can i update the data in the application when the data on server has been changed.

    B R Z 3 Replies Last reply
    0
    • Z zt Prog

      The database is on server(sql server 2000). The application run on the client pc's. How can i update the data in the application when the data on server has been changed.

      B Offline
      B Offline
      BlaiseBraye
      wrote on last edited by
      #2

      http://www.codeproject.com/cs/database/DatabaseEventsArticle.asp[^]

      enjoy the code with you is my priority, Blaise Braye

      Z 1 Reply Last reply
      0
      • Z zt Prog

        The database is on server(sql server 2000). The application run on the client pc's. How can i update the data in the application when the data on server has been changed.

        R Offline
        R Offline
        Rick van Woudenberg
        wrote on last edited by
        #3

        Hi Capuano, You have to implement/design a sort of "push - pull" mechanism. You have identify what is changed ( tablesize, tablecontent, indexes .. etc ) and monitor that. Then push out a message to the users saying what has changed, or invoke a method that can update the clients with what ever you want. It not easy to give you a hard and fast anwser because your post lacks the information required to send you down the right path ( if there is such a thing ) Cheers,

        1 Reply Last reply
        0
        • B BlaiseBraye

          http://www.codeproject.com/cs/database/DatabaseEventsArticle.asp[^]

          enjoy the code with you is my priority, Blaise Braye

          Z Offline
          Z Offline
          zt Prog
          wrote on last edited by
          #4

          Thanks for the reply. The application is a windows application is there a difference?

          B 1 Reply Last reply
          0
          • Z zt Prog

            Thanks for the reply. The application is a windows application is there a difference?

            B Offline
            B Offline
            BlaiseBraye
            wrote on last edited by
            #5

            have a look at also http://www.15seconds.com/issue/041006.htm[^] I couldn't give you the answer to your question because I simply didn't try it. For this kind of applications, I am using transactions

            enjoy the code with you is my priority, Blaise Braye

            1 Reply Last reply
            0
            • Z zt Prog

              The database is on server(sql server 2000). The application run on the client pc's. How can i update the data in the application when the data on server has been changed.

              Z Offline
              Z Offline
              zt Prog
              wrote on last edited by
              #6

              The database is on server(sql server 2000). The application (Windows application)run on the client pc's. How to use the SqlTriggerContext to update the data in the application when data on server has been changed?

              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