Vb net dataset not updating

Fill(nwind DS, "Categories") Dim dt Table As Data Table Dim dr Row As Data Row dt Table = nwind DS. New Row() dr Row("Category Name") = "New Category Name" dr Row("Description") = "New Description" dt Table. NVar Char, 1073741823, "Description")) Dim nwind DS As Data Set = New Data Set() nwind DA. Hope this helps Jay "Cor" Hi Jay B, I could not find that text. Also added the commandbuilder, which makes all the commands from the select string (but forget never the primary key column to have in the select).

It it running now and working beautifully if I do say so.

The catalogitem datatable had a 3 column key and I ended up using the data from the subset datagrid to populate an array with the three key values then using a Find and a Index Of to get the appropriate datatable row.

- jmcilhinney I got it to work with Wild Bills advice on using the dataset.

Hi, I am trying to insert a row into the Categories Table in Nothwinds database in MSDE.

that page does not explicitly state that Update calls Accept Changes, nor do I see where it states (on that page) that you need to call Accept Changes. The only reference to Accept Changes is in the note about what happens when Accept Changes is called. New Row() dr Row("Category Name") = "New Category Name" dr Row("Description") = "New Description" nwind DS.tables("Categories").

Hope this helps Jay Cor, Sorry wrong URL, I changed pages in the browser, but the url did not change, try this page (the page immediately after the one I sent before). Fill(nwind DS, "Categories") dim dr Row as datarow = nwind DS.tables("Categories"). Collect() Next 'Becuase I am testing I only go through 5 records of the 44000 records If i ID That is the very essence of human beings and our very unique capability to perform complex reasoning and actually use our perception to further our understanding of things. -Kleinma Does your code in post #46 look like my code in #45? THe issue I was having was getting that subset of rows without using a filter from the catalogitem datatable. - jmcilhinney That is the very essence of human beings and our very unique capability to perform complex reasoning and actually use our perception to further our understanding of things. -Kleinma Does your code in post #46 look like my code in #45? I did have an XML defined Schema with relationships setup that mirrored the exact schema of the Back End Database. Get Changes()) End Sub This code does not do anything. Hi all, I have an application to re-sequence some items based on a an alphabetical ordering of the items from another table. I am able to manually insert it using a query tool. Thanks in advance, Tom ====== Sub Main() Dim nwind Conn As Sql Connection = New Sql Connection ("Data Source=COL-TP5170-LT1\VSdot NET; Integrated Security=SSPI; Initial Catalog=Northwind;") Dim nwind DA As Sql Data Adapter = New Sql Data Adapter ("SELECT Category ID, Category Name, Description FROM Categories", nwind Conn) nwind Conn.

Tags: , ,