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. Visual Basic
  4. Showing Additions to a DataSet

Showing Additions to a DataSet

Scheduled Pinned Locked Moved Visual Basic
databasesql-serversysadminhelpquestion
3 Posts 2 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.
  • Q Offline
    Q Offline
    Quecumber256
    wrote on last edited by
    #1

    Hi Everyone: Is there a way I can show the records I added and/or modified to a DataSet before I commit them to the database? I think it is something like MyDataSet.GetChanges. Cleako - BTW the problem with the dataset primary ID number being off didn't seem to make a difference when I wrote the data out to the SQL Server Database using the SQLDataAdapter. Thanks, Quecumber256

    M 1 Reply Last reply
    0
    • Q Quecumber256

      Hi Everyone: Is there a way I can show the records I added and/or modified to a DataSet before I commit them to the database? I think it is something like MyDataSet.GetChanges. Cleako - BTW the problem with the dataset primary ID number being off didn't seem to make a difference when I wrote the data out to the SQL Server Database using the SQLDataAdapter. Thanks, Quecumber256

      M Offline
      M Offline
      Marcus J Smith
      wrote on last edited by
      #2

      I found this - "Gets a copy of the DataSet that contains all changes made to it since it was loaded or since AcceptChanges was last called."[^]. So it does look like that's what happens. Im glad the update finally worked for you, I figured that it would reorder the IDs as they were REALLY added to the database.


      CleaKO

      "Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)

      Q 1 Reply Last reply
      0
      • M Marcus J Smith

        I found this - "Gets a copy of the DataSet that contains all changes made to it since it was loaded or since AcceptChanges was last called."[^]. So it does look like that's what happens. Im glad the update finally worked for you, I figured that it would reorder the IDs as they were REALLY added to the database.


        CleaKO

        "Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)

        Q Offline
        Q Offline
        Quecumber256
        wrote on last edited by
        #3

        Thank you. I going to see if I can adapt it for my use. Quecumber256

        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