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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Get only updated and newly record

Get only updated and newly record

Scheduled Pinned Locked Moved C#
csharpdatabasesql-serverquestion
5 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.
  • A Offline
    A Offline
    Abdul Rahman Hamidy
    wrote on last edited by
    #1

    Dear All, I have a database in MSSQL 2005 which i am doing DDL,DML from c# code. i am looking for a tool in MSSQL 2005 which can i get only updated and newly inserted records in a file, that i can use through my c# code. such a tool is available in MSSQL 2005?

    Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

    C 1 Reply Last reply
    0
    • A Abdul Rahman Hamidy

      Dear All, I have a database in MSSQL 2005 which i am doing DDL,DML from c# code. i am looking for a tool in MSSQL 2005 which can i get only updated and newly inserted records in a file, that i can use through my c# code. such a tool is available in MSSQL 2005?

      Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Put a date stamp on your data, and request data that's been modified or inserted since the last time you asked for it.

      Christian Graus Driven to the arms of OSX by Vista.

      A 1 Reply Last reply
      0
      • C Christian Graus

        Put a date stamp on your data, and request data that's been modified or inserted since the last time you asked for it.

        Christian Graus Driven to the arms of OSX by Vista.

        A Offline
        A Offline
        Abdul Rahman Hamidy
        wrote on last edited by
        #3

        would you please provide me more information

        Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

        A 1 Reply Last reply
        0
        • A Abdul Rahman Hamidy

          would you please provide me more information

          Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

          A Offline
          A Offline
          Abdul Rahman Hamidy
          wrote on last edited by
          #4

          In fact, what i am doing is, the application which i am developing is used in multiple locations. i have local server and multiple remote servers, I would like to send remote servers updated and newly insertd data via email to local server, and local server should get the data and update the system. I am not going through replication.

          Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

          S 1 Reply Last reply
          0
          • A Abdul Rahman Hamidy

            In fact, what i am doing is, the application which i am developing is used in multiple locations. i have local server and multiple remote servers, I would like to send remote servers updated and newly insertd data via email to local server, and local server should get the data and update the system. I am not going through replication.

            Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

            S Offline
            S Offline
            Shyam K Pananghat
            wrote on last edited by
            #5

            As Christian suggested add a date column. add one more column named flag. Let say flag 1 is for insert and 2 is for delete 3 fro update.. Use Triggers appropiately to insert these flags and date to your extra columns.. Then you can easily compare at a leter point of time.. and should solve your problem... :)

            Shyam.. My Blog dotnetscoups.blogspot.com

            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