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. Database & SysAdmin
  3. Database
  4. Ideas to Update DATA received from the client

Ideas to Update DATA received from the client

Scheduled Pinned Locked Moved Database
databasecsharpdotnetsysadminhelp
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.
  • _ Offline
    _ Offline
    _J_
    wrote on last edited by
    #1

    I have not big DB (12 tables) Suppose application is requested for some data about specified clientID by means of ADO.NET i got all the relevant data about this clientID from several tables to the client, client perform tasks on this data change it maybe add something new or delete somtething (there is posibility that data will not changed at all), after this client click to SAVE button and return data to DB, here start the problem, i can delete all relevant data about specified clientID in all table and after this insert data tables (insert data that recieved from the application) or i can check what changed and to remove or update or insert data. ANY IDEAS, and maybe how to perform my problem. I'm using: Windows Xp, .NET Framework, Sql-Server 2000. ------------------------------------ To study, study and only to study

    E 1 Reply Last reply
    0
    • _ _J_

      I have not big DB (12 tables) Suppose application is requested for some data about specified clientID by means of ADO.NET i got all the relevant data about this clientID from several tables to the client, client perform tasks on this data change it maybe add something new or delete somtething (there is posibility that data will not changed at all), after this client click to SAVE button and return data to DB, here start the problem, i can delete all relevant data about specified clientID in all table and after this insert data tables (insert data that recieved from the application) or i can check what changed and to remove or update or insert data. ANY IDEAS, and maybe how to perform my problem. I'm using: Windows Xp, .NET Framework, Sql-Server 2000. ------------------------------------ To study, study and only to study

      E Offline
      E Offline
      Edbert P
      wrote on last edited by
      #2

      To delete all relevant data and insert them again will be taxing to your database server. For best performance you can balance between tables to be deleted (best for one-to-many relationship such as multiple selection) and tables to be updated (best for one-to-one relationship e.g. a table with many columns). If you are using datasets, specify all the insert, delete and update commands and let it do the work for you. Edbert

      _ 1 Reply Last reply
      0
      • E Edbert P

        To delete all relevant data and insert them again will be taxing to your database server. For best performance you can balance between tables to be deleted (best for one-to-many relationship such as multiple selection) and tables to be updated (best for one-to-one relationship e.g. a table with many columns). If you are using datasets, specify all the insert, delete and update commands and let it do the work for you. Edbert

        _ Offline
        _ Offline
        _J_
        wrote on last edited by
        #3

        However if i don'et use dataset, i'm developing only db i don't care what hapen in the application layer. What i should do do delete relevant rows and insert after this or to do some manipulation with data to understand what chenged and aafter this to insert o to delete or to update some rows???? ------------------------------------ To study, study and only to study

        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