Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

hi all. just learning all about the ASP.NET datasets. im creating a dataset thats a replica of my database. it took a while, as my database has a fair few tables and relationships, but i have it done. now heres my question.

 

i will be gathering info from a form and adding it to the database. from my reasoning i have deduced that i simply add this data to the correct datatable in the dataset and then use the the dataAdapter.Update() method for each table that i have altered in the dataset.

 

this means i have to have an adapter for each table and write an insert command for each adapter which seems a bit overkill. is there a better way to do this? im afraid i cant simply set the data adapter insert command to a big transaction, as im only using access and it doesnt allow transactions.

 

also, do i have to fill the tables with the data already in the database, or can i just add the new rows? i mean , if i only add the new rows, then update the changes, will the old data all be over written?

Edited by fguihen
Posted
i remember that, but i cant think of any other way to solve my problem. i have to gather a lot of info on a patient, on topics such as exercise habbits, sleep habbits, medication, hospital visits and so on. this is the only process i have therefore i only have tables related to this process. so my datset has to be a copy of my database. unless theres a different methodology of thinking about this, which i have not yet grasped

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...