<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx</link><description>In my previous post on TableAdapters and Transactions I showed a couple techniques on how to perform hierarchical updates inside a transaction when you have multiple related DataTables in your DataSet. The example I gave here shows how to use database</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Geek Lectures - Things geeks should know about &amp;raquo; Blog Archive   &amp;raquo;  The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7023846</link><pubDate>Tue, 08 Jan 2008 07:44:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7023846</guid><dc:creator>Geek Lectures - Things geeks should know about » Blog Archive   »  The New TableAdapterManager in Visual Studio 2008</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://geeklectures.info/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008/"&gt;http://geeklectures.info/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7038089</link><pubDate>Wed, 09 Jan 2008 11:24:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7038089</guid><dc:creator>Jason Stangroome</dc:creator><description>&lt;p&gt;We saw the new TableAdapterManager and thought it would be great. Unfortunately, due to a logic bug in the designer code, it fails to work with already open connections and therefore cannot perform an transactional UpdateAll across multiple DataSets without involving MSDTC. For the time being, we have a PowerShell script to fix the bad code everytime the designer file gets regenerated.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=311689"&gt;http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=311689&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;- Jason&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7042787</link><pubDate>Wed, 09 Jan 2008 19:58:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7042787</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Jason,&lt;/p&gt;
&lt;p&gt;While I think your scenario should be supported in the designer, I'd be careful updating too many rows in a transaction when they really don't need to be. Even in my example above it's not really necessary for me to have the transaction wrapped around the entire batch. The risk of concurrency errors will increase in a multi-user system the more rows you're trying to update, and a rollback of all the data may not be desired if a single row cannot be updated. For instance, in the example above if the update worked but the insert failed, I probably would still want the update to succeed because the orders are independent of eachother. In other types of scenarios, however, you'd want the entire set to rollback so what I'm doing would make sense. &lt;/p&gt;
&lt;p&gt;BTW, for now you can still roll your own manually like we did in VS 2005 if you do want to support multiple datasets.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7075926</link><pubDate>Fri, 11 Jan 2008 19:15:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7075926</guid><dc:creator>Alex Simkin</dc:creator><description>&lt;p&gt;I noticed that TableAdapterManager explicitly creates and commits transaction. How to make it participate in the ambient (TransactionScope controlled) transaction?&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7076460</link><pubDate>Fri, 11 Jan 2008 19:51:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7076460</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;Just like Jason mentions, the generated code doesn't allow use of a shared connection thus not allowing for the this scenario with the TableAdapterManager. It will be fixed in VS2008 SP1. For now you can do it the same as you did in VS 2005. Here's the code for that &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/bethmassi/archive/2007/07/11/tableadapters-and-transactions.aspx"&gt;http://blogs.msdn.com/bethmassi/archive/2007/07/11/tableadapters-and-transactions.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7159622</link><pubDate>Sat, 19 Jan 2008 12:14:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7159622</guid><dc:creator>Sabino</dc:creator><description>&lt;p&gt;Dear Beth, i'm a beginner in .NET developing and i'm writing a database management software like northwind. I like a lot the new data components you demo in &amp;quot;how do i&amp;quot; video series and the new enhancement such as TableAdapterManager and LINQ. I have only a problem and i would ask you the better solution. For example: if i load a datasset from database using tableadapter's fill method to use that data in a form and the same data are loaded and modified in another form or externally by another user of the database, how can i refresh the data loaded in the first dataset without refill the dataset?&lt;/p&gt;
&lt;p&gt;Can you help me please?&lt;/p&gt;
&lt;p&gt;Many thanks,&lt;/p&gt;
&lt;p&gt;Sabino&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7186443</link><pubDate>Mon, 21 Jan 2008 21:10:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7186443</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Sabino,&lt;/p&gt;
&lt;p&gt;There's a couple ways to do it. You can use the Merge method on the dataset to merge new records into a dataset you already have filled or you can set the .ClearBeforeFill property on the TableAdapter to False so that when you call the Fill method, it will merge the records returned from the query instead of clearing the DataSet first.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/bz9tthwx"&gt;http://msdn2.microsoft.com/en-us/library/bz9tthwx&lt;/a&gt;(VS.80).aspx&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7227237</link><pubDate>Fri, 25 Jan 2008 00:13:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7227237</guid><dc:creator>Serge</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;I have a problem with the code you suggested above. I have a project which is using an access (mdb) database. First of all, can I use the code above for this ?&lt;/p&gt;
&lt;p&gt;Second when I try to use the tablemanager.updateall I always get an error saying there has to be a relation the parent table. &lt;/p&gt;
&lt;p&gt;I've tried setting the cascade rule on the database relation level, on the dataset level (as you suggested), on both but I always get an error.&lt;/p&gt;
&lt;p&gt;What am I doing wrong and what kind relation do you have to set and where ?&lt;/p&gt;
&lt;p&gt;Do I have to set other properties (like incrementseed etc.) ?&lt;/p&gt;
&lt;p&gt;I followed your code very thoroughly but still no succes.&lt;/p&gt;
&lt;p&gt;Thank you for your reply&lt;/p&gt;
&lt;p&gt;Serge&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7256986</link><pubDate>Sat, 26 Jan 2008 18:52:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7256986</guid><dc:creator>May East</dc:creator><description>&lt;p&gt;in regards to the bug in VS2008 that Jason found in the designer code - Does this effect only people who want to use TransactionScope controlled transactions ?&lt;/p&gt;
&lt;p&gt;if i would like to use regular ado.net sql transactions, am i affected by this issue ?&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7349752</link><pubDate>Thu, 31 Jan 2008 15:55:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7349752</guid><dc:creator>Brian in England</dc:creator><description>&lt;p&gt;Hi beth,&lt;/p&gt;
&lt;p&gt;I have just entered the code for the N-Tier DataSets &amp;nbsp;by following the video for the “How Do I” series.&lt;/p&gt;
&lt;p&gt;I have found a significant problem after the first save on the DataGridView form. When I try to save a second time I am getting an exception in the &amp;nbsp; DataManager class in the DAL project.&lt;/p&gt;
&lt;p&gt;In the line saved = (manager.UpdateAll(products) &amp;gt; 0) (orders in your code) it reports a ‘Concurrency violation’. I think you need to add new code as it thinks to record I have is out of sinc with the one at the server. &lt;/p&gt;
&lt;p&gt;I have added a timestamp column to my table as I asumed it was a good way to keep track of changes on the table. I see there is no code at all to handel concurrent access to records so the user can choose to over write or drop and update the record without getting all the records again and reseting the whole DataGridView.&lt;/p&gt;
&lt;p&gt;Maybe its time for another video building on the first solution! &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have answer the problem somewhere can you direct me to it? &lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7352194</link><pubDate>Thu, 31 Jan 2008 18:17:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7352194</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Serge,&lt;/p&gt;
&lt;p&gt;Regarding Access, you need to add code to the DataAdapter's RowUpdated event in order to retrieve the @@IDENTITY after a row is inserted. This is because Access doesn't support multiple statements in one command so the generated Insert code on you TableAdapter cannot include the retrieval of the primary key. I'll put it on the list to work on a sample for Access.&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7352242</link><pubDate>Thu, 31 Jan 2008 18:19:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7352242</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi May East,&lt;/p&gt;
&lt;p&gt;Yes this will affect any type of transaction you want to perfrom accross *DataSets*. SQL-Transactions are automatic accross DataTables inside a single DataSet. In order to perform a transaction accross DataSets you will need to write the same code you did in VS 2005 for now. This will be fixed in SP1 of VS 2008.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7352602</link><pubDate>Thu, 31 Jan 2008 18:39:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7352602</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;I'm working on getting the CodeGallery project rolled out for this sample, I'm hoping it will be up this week. If it isn't, I'll put it up here. Feel free to use the contact form to email me and I'll send you the finished code.&lt;/p&gt;
&lt;p&gt;Couple things to check, you need to make sure you pass the DataSet ByRef on the Save and that you merge the records properly on the client afterwards (as shown in the video). The TableAdapters also need to be set up properly so that they can retrieve the Identity keys on inserts. This should happen automatically if you have an identity PK in the database. By default, the concurrency check does so by checking all the original values against current values in the columns in the WHERE clause of the UpdateCommand, but if you set up a timestamp it will just use that (I recommend that approach if you don't need the finer concurrency check because this performs better.)&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7354410</link><pubDate>Thu, 31 Jan 2008 20:54:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7354410</guid><dc:creator>Brian in England</dc:creator><description>&lt;p&gt;Well thanks for getting back to me as you must be very busy. I will do some checks and get back to you if I don’t get it sorted. Maybe I missed something in the video.&lt;/p&gt;
&lt;p&gt;On another subject. I have a problem with the ‘smallmoney’ column type in the SQL server table. It always shows 4 past the decimal like ‘0.0000’ and the same format is appearing on the client forms. Can I change this on the server or on the BindingSource or where?&lt;/p&gt;
&lt;p&gt;p.s. I see you play guitar. I help out with a band called ‘Kamagra’ &amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can see them here. &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://www.systonsocial.co.uk/"&gt;http://www.systonsocial.co.uk/&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your time&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7355031</link><pubDate>Thu, 31 Jan 2008 21:48:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7355031</guid><dc:creator>Brian in England</dc:creator><description>&lt;p&gt;You were right! I missed out…&lt;/p&gt;
&lt;p&gt;Me.ProductsDataSet.Merge(changes)&lt;/p&gt;
&lt;p&gt;Me.ProductsDataSet.AcceptChanges()&lt;/p&gt;
&lt;p&gt;After the save and I also added....&lt;/p&gt;
&lt;p&gt;If changes.HasErrors Then &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; MsgBox(&amp;quot;Data on the form is invalid and can't be saved&amp;quot;, MsgBoxStyle.Exclamation)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit Sub&lt;/p&gt;
&lt;p&gt;End If&lt;/p&gt;
&lt;p&gt;...before the save to stop invalid data being sent.&lt;/p&gt;
&lt;p&gt;by &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7373720</link><pubDate>Fri, 01 Feb 2008 15:38:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7373720</guid><dc:creator>Brian in England</dc:creator><description>&lt;p&gt;Help..&lt;/p&gt;
&lt;p&gt;In the N-Tier DataSets solution I have just added a new Query to the dataset in the DAL project. I have added the code in the DataManager.vb file of the same project and also updated IService.vb and Service.vb. When I returned to my form in the Client project I can’t find the new method in the proxy.&lt;/p&gt;
&lt;p&gt;With this code…&lt;/p&gt;
&lt;p&gt;Dim proxy As New xxxxService.ServiceClient&lt;/p&gt;
&lt;p&gt;Me.ProductsDataSet.Merge(proxy.newmethod)&lt;/p&gt;
&lt;p&gt;Is there something else I need to update to get it?&lt;/p&gt;
&lt;p&gt;Sorry to be a pain but others must be getting the same problem.&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7374269</link><pubDate>Fri, 01 Feb 2008 16:17:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7374269</guid><dc:creator>Brian in England</dc:creator><description>&lt;p&gt;Sorted..&lt;/p&gt;
&lt;p&gt;I needed to update the Reference.vb under the Reference.svcmap in the Client Service References.&lt;/p&gt;
&lt;p&gt;Is there in easy way to update this automatically?&lt;/p&gt;
&lt;p&gt;by&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7375650</link><pubDate>Fri, 01 Feb 2008 19:14:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7375650</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;When you update the service, you need to also update the proxy code on the client. This code is generated for you. Just expand the Service References on the client project in the Solution Explorer, select the service reference and select &amp;quot;Update Service Reference&amp;quot;.&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7393056</link><pubDate>Sat, 02 Feb 2008 18:00:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7393056</guid><dc:creator>Brian in England</dc:creator><description>&lt;p&gt;I have a ComboBox problem today.&lt;/p&gt;
&lt;p&gt;It is bound to one table and the value member is the primay key but the problem comes from the fact the display member is a decimal (fdRate) not a sting and doesn’t like matching up with the user input. Is there a way of converting the display member (fdRate) to as string so that it can match with the users typing then set the value member (fdKeyID). You must have come across this problem before when not working with string values. When converting I need to see it as “#.##” formating. &lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7667793</link><pubDate>Wed, 13 Feb 2008 11:35:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7667793</guid><dc:creator>Serge</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;Regarding the access database @@IDENTITY problem, I think I found a(nother) simple solution by setting the IncrementSeed and IncrementStep to a value on the dataset.&lt;/p&gt;
&lt;p&gt;Than I don't get the constraint problems and everything works fine.&lt;/p&gt;
&lt;p&gt;Is this solution also valid or is it not the way to do it ?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Serge&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7677381</link><pubDate>Wed, 13 Feb 2008 19:37:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7677381</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Serge,&lt;/p&gt;
&lt;p&gt;You're solution will not work in a multi-user application if you allow re-editing of the inserted rows. If you do not handle retrieving the identity generated by the database then you will need to refresh the client dataset (clear the dataset then call Fill again) so you can get back the key. &lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7713534</link><pubDate>Fri, 15 Feb 2008 13:47:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7713534</guid><dc:creator>Serge</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;I thought that would be a problem. Fortunately the project I'm working on is single user (for the moment). &lt;/p&gt;
&lt;p&gt;I have another project which is multi-user, so I think it will be &amp;quot;bye bye&amp;quot; Access and &amp;quot;welcome&amp;quot; Sql.&lt;/p&gt;
&lt;p&gt;Serge&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#7984437</link><pubDate>Sun, 02 Mar 2008 05:40:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7984437</guid><dc:creator>Frans</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;I've generate Typed Dataset using Dataset Designer Wizard in Visual Studio 2005...&lt;/p&gt;
&lt;p&gt;Let's say I have 2 Table in the dataset, [CustomerGroups] and [Customers] with 1 to many relation (CustomerGroups 1-&amp;gt;MANY Customers).&lt;/p&gt;
&lt;p&gt;When I want to show the [CustomerGroups].&amp;quot;Name&amp;quot; in [Customers] Data Table so I configure the Query became like this :&lt;/p&gt;
&lt;p&gt;&amp;quot;select t1.*, t2.Name as CustomerGroupsName from Customers t1, CustomerGroups t2 where t1.CustomerGroupsID = t2.id&amp;quot;&lt;/p&gt;
&lt;p&gt;After I saved this query the data table is changed with added 1 column (CustomerGroupsName), but the main problem is Te First Generated Insert, Update, And Delete Command is gone and in the InsertCommand, UpdateCommand and DeleteCommand Property is set to (none)&lt;/p&gt;
&lt;p&gt;How can I solve this problem? Because I need to work with Joined Query and need to update it and in the other side I know that command builder can't generate multiple table. &lt;/p&gt;
&lt;p&gt;Is there any Property in TableAdapter like &amp;quot;MainTable&amp;quot; Property so I can set the main table I want to update? Or The New TableAdapterManager can solve This Problem?&lt;/p&gt;
&lt;p&gt;Please Help... Thanks&lt;/p&gt;
&lt;p&gt;Frans&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8182119</link><pubDate>Thu, 13 Mar 2008 20:10:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8182119</guid><dc:creator>Brandon</dc:creator><description>&lt;p&gt;I have a form that creates and edits Invoices. Everything works when I edit an Invoice using the tableadaptermanager.UpdateAll method. However, when I create an Invoice, I get a concurrency violation. I set up a trace in SQL Profiler and found that if I edit an Invoice by adding a new line item and editing another, an InsertCommand is executed on my InvoiceDetail table and then an UpdateCommand is executed on my InvoiceDetail table. Again everything works. When I create an Invoice with one or more line items, an InsertCommand is correctly executed on my Invoice table, but then an UpdateCommand is INCORRECTLY executed on my InvoiceDetail table. I checked the rowstate for each InvoiceDetail record and it is correctly set as Added and so why is an UpdateCommand executing on the InvoiceDetail table (instead of an InsertCommand) and causing the save to fail? Any ideas? I'll be happy to provide more info if needed. Please help. Thanks.&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8189437</link><pubDate>Fri, 14 Mar 2008 01:58:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8189437</guid><dc:creator>Brandon</dc:creator><description>&lt;p&gt;I got it working after some trial and error. I had the Accept/Reject Rule set to Cascade. Changing it back to None fixed my problem.&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8381378</link><pubDate>Fri, 11 Apr 2008 20:49:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8381378</guid><dc:creator>Pete</dc:creator><description>&lt;p&gt;Beth,&lt;/p&gt;
&lt;p&gt;I'm running into a problem with the TableAdapterManager. I get the following error when I try to update a record. &amp;quot;Update requires a valid UpdateCommand when passes DataRow collecting with modified rows.&amp;quot; I have used the configuration wizard in the DataSet designer to allow it to build the Select, Insert, Update, Delete statements for each of the tableadapters in the DataSet. Although I have all of the settings set the same for each adapter, it doesn't not create the Update and Delete statements for many of the TableAdapters. Can you tell me what I'm doing wrong?&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8415204</link><pubDate>Mon, 21 Apr 2008 22:14:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8415204</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Frans,&lt;/p&gt;
&lt;p&gt;You will need to write the queries yourself if you have an entity that is a join of multiple tables. I would suggest writing them as stored procedures in the database and then specifying those in the command properties of the TableAdapters.&lt;/p&gt;
&lt;p&gt;Here's the documentation on TableAdapter configuration that also explains how to connect them to new or existing stored procedures:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/dex7k4dw.aspx"&gt;http://msdn2.microsoft.com/en-us/library/dex7k4dw.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B &lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8415207</link><pubDate>Mon, 21 Apr 2008 22:16:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8415207</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Pete,&lt;/p&gt;
&lt;p&gt;The designer can't create update statements for DataTables that originate from more than one table in your database, is that what is happening in your situation? If so, you need to either specify the statement to execute or write a stored procedure to handle that case.&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8763348</link><pubDate>Tue, 22 Jul 2008 11:37:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8763348</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;1. table in database have constrain on some fields&lt;/p&gt;
&lt;p&gt;2. Open form with datagrid and delete row&lt;/p&gt;
&lt;p&gt;3. Enter new row with same data&lt;/p&gt;
&lt;p&gt;4. Try to update &lt;/p&gt;
&lt;p&gt;5. Exception!!! Becouse it need the first row be deleted from database first then insert command&lt;/p&gt;
&lt;p&gt;How can i workaround this problem?&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8871610</link><pubDate>Sat, 16 Aug 2008 17:51:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8871610</guid><dc:creator>Oscar Mandiola</dc:creator><description>&lt;p&gt;Hi Beth, i have just installed vb2008 sp1 and i can't see the &amp;quot;Hierarchical Update&amp;quot; in the dataset properties (in the existing versions); the solution is properly set to &amp;quot;net framework 3.5&amp;quot;, I created a new empty dataset and this property does not appears.&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8876449</link><pubDate>Mon, 18 Aug 2008 16:50:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8876449</guid><dc:creator>Oscar Mandiola</dc:creator><description>&lt;p&gt;Hi Beth, I fixed the problem, thanks anyways. &lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8888872</link><pubDate>Sat, 23 Aug 2008 00:14:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8888872</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Dmitry,&lt;/p&gt;
&lt;p&gt;You can't use the TableAdapterManager to automatically do that. Instead just call the TableAdapter.Update method passing it just the deleted rows first then you can update the rest.&lt;/p&gt;
&lt;p&gt;Me.MyTableAdapter.Update(Me.MyDataSet.MyTable.Select(&amp;quot;&amp;quot;, &amp;quot;&amp;quot;, DataViewRowState.Deleted))&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8942155</link><pubDate>Thu, 11 Sep 2008 00:58:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8942155</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;in regards to Serge's post in January of 2008, I'm having similar issues trying to get the FK for a child table with the end result being -- cant add records for a child table. &amp;nbsp;Interestingly, I cant even manually add the primary key / foreign key in the child table and let it update that way. Any ideas?&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8942194</link><pubDate>Thu, 11 Sep 2008 01:13:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8942194</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Joe,&lt;/p&gt;
&lt;p&gt;If you aren't using SQL Server (or more specifically a database that can run batch SQL statements like Access) then you will have to add a handler to the RowUpdated event and retrieve the key maunally. If you look at the attached sample you will see that the Insert statements on the TableAdapters are actually batch statements that return the keys. I'm not an Access expert but here's an article that may help you handle this situation if it applies to you: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms971502.aspx#manidcrisis_topic2"&gt;http://msdn.microsoft.com/en-us/library/ms971502.aspx#manidcrisis_topic2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8956313</link><pubDate>Thu, 18 Sep 2008 01:39:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8956313</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;This all makes sense, however once you get the PrimaryKey -- do you have to manually code the entering of the the PK as the Foreign Key in the child tables AND handle adding new records? &amp;nbsp;It wont be bad if the child table was represented as a datagridview -- but if they were all textboxes, it would be pretty tedious if you have many child objects you need to check on.&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8956330</link><pubDate>Thu, 18 Sep 2008 01:59:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8956330</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Joe,&lt;/p&gt;
&lt;p&gt;If you set up the DataSet relations and the related BindingSources on the controls properly this will happen automatically for you. See this video:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/vbasic/cc138241.aspx"&gt;http://msdn.microsoft.com/en-us/vbasic/cc138241.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8956635</link><pubDate>Thu, 18 Sep 2008 07:11:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8956635</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;Even if your child table is represented as text boxes instead of a datagridview? &amp;nbsp;I can get it to work for the latter without any modification... Just not as a detail view. &amp;nbsp;Fantastic videos by the way. &amp;nbsp;Nice, Clean and organized.&lt;/p&gt;
&lt;p&gt;JOe&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#8957611</link><pubDate>Thu, 18 Sep 2008 20:38:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8957611</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Joe,&lt;/p&gt;
&lt;p&gt;Yes that should work as long as you set up the relations and bindingsources correctly as shown in that video. You also need to make sure you call EndEdit on the BindingSources to push the changes into the DataSet before calling UpdateAll on the TableAdapter. Perhaps that is the problem?&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9005169</link><pubDate>Sat, 18 Oct 2008 21:08:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9005169</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;I saw your video-series...it's great!&lt;/p&gt;
&lt;p&gt;I have a question: in my previous application I use a MS Acces databse with password. Because of the &amp;quot;identity-problem&amp;quot; of the access database, now I'm using an mdf database and I want to set its password. How do I set the password?&lt;/p&gt;
&lt;p&gt;Another question: I don't understand what is the SQL Server version installed by VB 2008 (component of the VS 2008 iso image)...I have only two directories: Microsoft SQL Server and Microsoft SQL Server Compact Edition.....what version is it?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9010043</link><pubDate>Tue, 21 Oct 2008 20:04:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9010043</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Marco,&lt;/p&gt;
&lt;p&gt;I believe SQL Server 2005 Express is installed with Visual Studio. You probably want to install SQL Server Management Studio though. It's easier to add users and manage security from here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here's a set of tutorials on how to use it:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/bb934498.aspx"&gt;http://msdn.microsoft.com/en-us/library/bb934498.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For SQL Server 2008 Express with SSMS see: &lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=7522A683-4CB2-454E-B908-E805E9BD4E28&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyId=7522A683-4CB2-454E-B908-E805E9BD4E28&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9180831</link><pubDate>Sat, 06 Dec 2008 03:28:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9180831</guid><dc:creator>Albert Rugel</dc:creator><description>&lt;p&gt;Are there any microsoft whitepapers that explain how to create a multi-user database applications with vb.net?&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9186460</link><pubDate>Tue, 09 Dec 2008 08:58:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9186460</guid><dc:creator>Mani</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;Thanks for the video tutorials on VB. They are the wonderful practical demo tutorials , I have ever seen.&lt;/p&gt;
&lt;p&gt;I &amp;nbsp;have been following the video on how to update related tables in VB 2008. As mentioned in the video I have modified the relationships between a parent and child table to Cascaed for Update and Delete rule.But here I am facing a new problem.(I have the parnet table added to the form as 'Details' and related child table entries under datagridview.) &lt;/p&gt;
&lt;p&gt;The problem : Whenever I delete a child row from datagridview, the entire Parent table corresponding to that &amp;nbsp;and all other childs entries get deleted!. Why does this happen?&lt;/p&gt;
&lt;p&gt;Here what I am trying to do is, I created a SProc, for delete, which sets a bDeleted column to True in the table. I have changed the datatableadater property for delete command to this SProc and set the parameter properly. Also in the Delete rule (under edit relationship - datatables) I tried setting it to None. But this time it throws an error saying &amp;quot;Cannot delete this row because constraints are enforced on relation FK_Tests_Test_GroupTests, and deleting this row will strand child rows.&amp;quot; . Could you please guide me on this.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;S.Mani&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9194923</link><pubDate>Thu, 11 Dec 2008 07:55:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9194923</guid><dc:creator>Roberto</dc:creator><description>&lt;p&gt;Hi Beth, I'm just starting to work with DataSet, DataBinding, DataSource and TableAdapter on VB2008.&lt;/p&gt;
&lt;p&gt;Now, after a lot of trying and error tests, I have already a connection to a MS Access base using a DataSet, TableAdapter, DataGridView and a DataBinding.&lt;/p&gt;
&lt;p&gt;Now I have a barely idea about how its work, but I want to know exactly what is the purpose of a DataBinding, DataSource and Dataset.&lt;/p&gt;
&lt;p&gt;All the information I can find is about how to use it, but did not explain what is it purpose.&lt;/p&gt;
&lt;p&gt;So I get mess and I don't know if I must to make the queries to the DataSet, to the DataSource, to the DataGridView or DataBinding.&lt;/p&gt;
&lt;p&gt;Thanks in advance, Roberto.&lt;/p&gt;
&lt;p&gt;(Excuse me if my English is no to good, I'm trying to get a better one).&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9195053</link><pubDate>Thu, 11 Dec 2008 08:41:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9195053</guid><dc:creator>S.Mani</dc:creator><description>&lt;p&gt;Hi Roberto,&lt;/p&gt;
&lt;p&gt;I believe, it would be really helpful to you to go through the video tutorials given by Beth. Please find the link given below.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/vbasic/bb466226.aspx#formsoverdata"&gt;http://msdn.microsoft.com/en-us/vbasic/bb466226.aspx#formsoverdata&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Beth,&lt;/p&gt;
&lt;p&gt;I managed to solve the previous problem, by removing the &amp;quot;enforce constraint&amp;quot; for the dataset. and by changing the binding source of the binding navigator between child and parent datatables on datagridview enter and leave events. &lt;/p&gt;
&lt;p&gt;I am not sure if there is a better way to do it. if yes , please suggest.&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;S.Mani&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9245556</link><pubDate>Sun, 21 Dec 2008 18:17:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9245556</guid><dc:creator>Tomas Ekenman</dc:creator><description>&lt;p&gt;Hello Beth,&lt;/p&gt;
&lt;p&gt;Thanks for all the great videos!&lt;/p&gt;
&lt;p&gt;Regarding the &amp;quot;new&amp;quot; Table Adapter Manager, I can't get the example to work with the SQL Compact version. Perhaps it is not ment to be used with it or am I missing out on something?&lt;/p&gt;
&lt;p&gt;Merry Christmas&lt;/p&gt;
&lt;p&gt;Tomas Ekenman&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9261389</link><pubDate>Thu, 01 Jan 2009 18:00:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9261389</guid><dc:creator>Albert Rugel</dc:creator><description>&lt;p&gt;Hello Beth,&lt;/p&gt;
&lt;p&gt;When you use clickonce to deploy a database program, where are the database and application files installed?&lt;/p&gt;
&lt;p&gt;Albert&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9271354</link><pubDate>Sun, 04 Jan 2009 18:26:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9271354</guid><dc:creator>Albert Rugel</dc:creator><description>&lt;p&gt;Hello Beth,&lt;/p&gt;
&lt;p&gt;I have written a database program and now I need to write a utility program to backup and restore the database. How would I do this in visual basic. &amp;nbsp;What white papers can I read to help me get started? A few code snippets would be great..&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;
&lt;p&gt;Albert&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9312279</link><pubDate>Tue, 13 Jan 2009 05:37:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9312279</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;Does the TableAdapterManager have an issue with cascading Foreign Keys on a Datatable with a self join? &lt;/p&gt;
&lt;p&gt;I'm getting the error &amp;quot;ForeignKeyConstraint FK_ABC_DEF requires the child key value (xxxx) to exist in the Parent Table.&amp;quot;&lt;/p&gt;
&lt;p&gt;The self join relation has the Update Rule set to Cascade...&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9313592</link><pubDate>Tue, 13 Jan 2009 10:44:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9313592</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Hi Beth, I resolved that issue! The error was unrelated to the Self-join relation - the tableadapter manager updates the FK of the child records perfectly, Brilliant feature!&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9464234</link><pubDate>Sat, 07 Mar 2009 17:07:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9464234</guid><dc:creator>Lalit Kumar Soni</dc:creator><description>&lt;p&gt;Hi Beth massi I found everwhere The hirachical prpperty of the &amp;nbsp;Table adabter manager but it could not be see any where plz give the metode by which i can update the property Set it to True for the Insert update Delete &amp;nbsp;Metode .&lt;/p&gt;
&lt;p&gt;Plz Help me you can post replay on my &amp;nbsp;mail id lalit_1984@rediffmail.com&lt;/p&gt;
&lt;p&gt;thanks &lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9547377</link><pubDate>Tue, 14 Apr 2009 01:22:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9547377</guid><dc:creator>Alexei</dc:creator><description>&lt;p&gt;Hi Beth, thanks for all this great videos&lt;/p&gt;
&lt;p&gt;I have a question about the tableadaptermanager&lt;/p&gt;
&lt;p&gt;I need to merge the results of the saved dataset in the client side, but i wouldnt like to use the logic you used in your video (merge the returned dataset, delete added rows and then acceptchanges)&lt;/p&gt;
&lt;p&gt;In VS2005, i used to set acceptchangesduringupdate=false for the tableadapter, but now with the tableadaptermanager, it doesnt work, even if i set it like this:&lt;/p&gt;
&lt;p&gt;Dim taMngr As New DataSet1TableAdapters.TableAdapterManager&lt;/p&gt;
&lt;p&gt;Dim ta As New DataSet1TableAdapters.CitiesTableAdapter&lt;/p&gt;
&lt;p&gt;ta.Adapter.AcceptChangesDuringUpdate = False&lt;/p&gt;
&lt;p&gt;taMngr.CiudadesTableAdapter = ta&lt;/p&gt;
&lt;p&gt;taMngr.UpdateAll(changes)&lt;/p&gt;
&lt;p&gt;Any ideas of how t prevent the tableadaptermanager from calling accept changes on the saved data so i can merge it back in the client without getting duplicated rows??&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9562596</link><pubDate>Wed, 22 Apr 2009 19:15:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9562596</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Alexei,&lt;/p&gt;
&lt;p&gt;The technique I showed is necessary with n-tier datasets that have database-assigned primary keys because there's no way to know what the key will be on the client. If you do a straight merge without deleting the added rows first then you will end up with duplicate rows. You can create a more generic method that also checks and merges any errors in the tables as well. Call this after your middle-tier dataset comes back from an attempted save regardless if it returns true or false:&lt;/p&gt;
&lt;p&gt;Private Sub MergeChanges(ByVal dsSource As DataSet, ByVal dsTarget As DataSet)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim tblTarget As DataTable&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim i As Integer&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;With dsTarget&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For i = 0 To .Tables.Count - 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tblTarget = .Tables(i)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Remove added rows on the client first so we don't end up with duplicates&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim addedrows = (From row In tblTarget _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Where row.RowState = DataRowState.Added).ToArray()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For Each row In addedrows&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tblTarget.Rows.Remove(row)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Watch your constraints here, this will fail if the dataset constraints are invalid&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.Merge(dsSource)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For i = 0 To .Tables.Count - 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tblTarget = .Tables(i)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' This will merge errors, new keys and any other middle-tier changes&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If dsSource.Tables.Contains(tblTarget.TableName) Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Only AcceptChanges on the client's tables if the middle-tier returned no changes.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If dsSource.Tables(tblTarget.TableName).GetChanges Is Nothing Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tblTarget.AcceptChanges()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End If&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End If&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End With&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9609327</link><pubDate>Wed, 13 May 2009 17:18:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9609327</guid><dc:creator>Mohammad</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;You spoke about RowUpdated event several times to resolve problem with Access databases, but I could not found that event in controls that designer generated for my form (xxxTableAdapter). So I noticed that event handler belongs to DataAdapter instead of TableAdapter class. So why should I do now? Change all TableAdapters with DataAdapter?&lt;/p&gt;
&lt;p&gt;I also suggest you to add a field for email adresses in comments, so one can be notified automatically when others reply to his/her comment.&lt;/p&gt;
&lt;p&gt;Thanx&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9617460</link><pubDate>Fri, 15 May 2009 03:52:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9617460</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Mohammad,&lt;/p&gt;
&lt;p&gt;Please see this post: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx"&gt;http://blogs.msdn.com/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, you can subscribe to the comment RSS in the comment notification area above.&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9852630</link><pubDate>Thu, 30 Jul 2009 01:41:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9852630</guid><dc:creator>Angelika</dc:creator><description>&lt;p&gt;I am having the same problem as Frans(above), except that I am using a local Access database. My TableAdapter uses a join and displays fields from two tables. I am able to follow your solution for updating the table (stored procedures) using an sqlserver database, but can't get it to work for my Access database. All the store procedure &amp;amp; parameter options are not activated.&lt;/p&gt;
&lt;p&gt;Please help!&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9852642</link><pubDate>Thu, 30 Jul 2009 01:56:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9852642</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Angelika,&lt;/p&gt;
&lt;p&gt;Access doesn't support stored procedures so these options are not available for this database. However you may be able to gleen a solution from these two posts I have done on Access and DataSets:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx"&gt;http://blogs.msdn.com/bethmassi/archive/2009/05/14/using-tableadapters-to-insert-related-data-into-an-ms-access-database.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/bethmassi/archive/2009/07/22/filtering-child-datatables-using-tableadapters.aspx"&gt;http://blogs.msdn.com/bethmassi/archive/2009/07/22/filtering-child-datatables-using-tableadapters.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can write an Update statement that updates only the main table and ignores the joined fields but if you need to update both tables you will need to have two separate TableAdapters against Access. Is there any chance you can use SQL Express edition, it's free. &lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9852707</link><pubDate>Thu, 30 Jul 2009 03:23:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9852707</guid><dc:creator>Angelika</dc:creator><description>&lt;p&gt;Hello Beth,&lt;/p&gt;
&lt;p&gt;Thanks so much for your help. I finally got it to work. I do indeed only need to update the main table.&lt;/p&gt;
&lt;p&gt;The solution was fairly simple. &lt;/p&gt;
&lt;p&gt;1) Create a TableAdapter for the main table only and copy the TableAdapter UPDATE procedure (stored in the TableAdapter properties window)&lt;/p&gt;
&lt;p&gt;2) Configure the old SELECT query in the “TableAdapter Configuration Wizard Query Builder” to include fields from both tables (main table needs to contain a primary key field; tables were already joined in Access) &lt;/p&gt;
&lt;p&gt;3) Paste the old procedure into the now blank TableAdapter UPDATE procedure&lt;/p&gt;
&lt;p&gt;4) After creating a DataGridView, I was able to display fields from both tables and update the main table.&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9856195</link><pubDate>Mon, 03 Aug 2009 15:37:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9856195</guid><dc:creator>Sharf</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;I have a winform named 'BillForm' with bounded textboxes (CustomerIDTextBox, BillNoTextBox and TotalTextBox - its datasource is typed dataset 'BillDataset'). I want to update Balance column in CustomerDataTable(it is also typed dataset) and its primarykey column CustomerID with equivalent CustomerIDTextBox &amp;amp; TotalTextBox value in 'BillForm'.&lt;/p&gt;
&lt;p&gt;CustomerDataTable.Balance +=CDec(TotalTextBox.Text)&lt;/p&gt;
&lt;p&gt; I'm not load or fill CustomerDataset in 'BillForm' formload event. Can you please provide me a sample program?&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9856199</link><pubDate>Mon, 03 Aug 2009 15:45:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9856199</guid><dc:creator>Sharf</dc:creator><description>&lt;p&gt;I tried this code, the datatable dt is updated but my database not update.&lt;/p&gt;
&lt;p&gt; Private Sub BillingBindingNavigatorSaveItem_Click _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;(ByVal sender As System.Object, ByVal e As System.EventArgs) _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Handles BillingBindingNavigatorSaveItem.Click&lt;/p&gt;
&lt;p&gt;Dim da As New CustomerDataSetTableAdapters.CustomerTableAdapter&lt;/p&gt;
&lt;p&gt;Dim dt As New CustomerDataSet.CustomerDataTable&lt;/p&gt;
&lt;p&gt;da.FillByCustomerID(dt, CInt(CustomerIDTextBox.Text))&lt;/p&gt;
&lt;p&gt;dt.Rows(0)(&amp;quot;Balance&amp;quot;) += CDec (NetTotalTextBox.Text)&lt;/p&gt;
&lt;p&gt;dt.AcceptChanges()&lt;/p&gt;
&lt;p&gt;da.Update(dt)&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9856347</link><pubDate>Mon, 03 Aug 2009 19:20:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9856347</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Sharf,&lt;/p&gt;
&lt;p&gt;Don't call AcceptChanges until AFTER you successfully call Update. When you call AcceptChanges it marks all the rows in the DataSet with &amp;quot;no change&amp;quot; so if you call Update afterwards there will be no changes to send to the backend database. &lt;/p&gt;
&lt;p&gt;Take a look at this topic in the library for more information: &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ss7fbaez.aspx"&gt;http://msdn.microsoft.com/en-us/library/ss7fbaez.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9856377</link><pubDate>Mon, 03 Aug 2009 20:22:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9856377</guid><dc:creator>Sharf</dc:creator><description>&lt;p&gt;Great! Thanks for your time and thanks for the link...&lt;/p&gt;</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9895934</link><pubDate>Wed, 16 Sep 2009 19:14:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9895934</guid><dc:creator>Declan</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;Great tutorial. In my form I only need to create a master \ detail record (no need to load existing entries). Can you give me an idea of how to go about this?&lt;/p&gt;
&lt;p&gt;Like in the tutorial it should allow for multiple detail records to be added but as a detail view of the DataGridView as there will be quite a number of detail columns and its better to lay them out individually.&lt;/p&gt;
&lt;p&gt;Any help much appreciated.&lt;/p&gt;
&lt;p&gt;Declan&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9895945</link><pubDate>Wed, 16 Sep 2009 19:48:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9895945</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Declan,&lt;/p&gt;
&lt;p&gt;When you drag the related order details from the Data Sources window just select &amp;quot;Details&amp;quot; instead of DataGrid. The toolbar above the gid in that example works against the OrderDetailBindingSource so it will allow you to navigate throwgh the detail rows no matter if the details are displayed in a grid or layed out individually.&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9896213</link><pubDate>Thu, 17 Sep 2009 10:25:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9896213</guid><dc:creator>Declan</dc:creator><description>&lt;p&gt;Sorry the issue is more to do with the saving of the record. I was able to layout the data with a binding navigator for the detail as you described.&lt;/p&gt;
&lt;p&gt;When the form is opened the ( + ) symbol to add detail entries is enabled. When the specific data is entered and the save icon is clicked on the parent navigator, the primary key (identity seed) is not being saved on child record. I have followed the tutorial to ensure the EndEdit() is called on each binding source as well as the AddingNew event on the child binding source.&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9896277</link><pubDate>Thu, 17 Sep 2009 13:25:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9896277</guid><dc:creator>Declan (in Ireland)</dc:creator><description>&lt;p&gt;I managed to solve the issue...now onto validating the data on save :-)&lt;/p&gt;
&lt;p&gt;Thanks for the help and keep up the excellent work&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9917336</link><pubDate>Wed, 04 Nov 2009 15:10:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9917336</guid><dc:creator>Kostas</dc:creator><description>&lt;p&gt;Hi Beth&lt;/p&gt;
&lt;p&gt; have a problem with my datasase.In my form i have three related tables.The problem is that i can't update all three tables but only the first two with hierarchical update ( I used the article from Microsoft MSDN site).&lt;/p&gt;
&lt;p&gt;All datagrids are drag-and-drop from data-source all the code is auto-generated. I use VS 2008 and Northwind db.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9917606</link><pubDate>Wed, 04 Nov 2009 22:52:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9917606</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Kostas,&lt;/p&gt;
&lt;p&gt;You need to make sure you set up both relations between the three tables as a Foreign Key and Constraint and set Update and Delete rules to cascade. Then you need to make sure you call EndEdit on the parent BindingSources as you navigate to the children. &lt;/p&gt;
&lt;p&gt;Take a look at this video and make sure to repeat the process for your third table:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/vbasic/cc138241.aspx"&gt;http://msdn.microsoft.com/en-us/vbasic/cc138241.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: The New TableAdapterManager in Visual Studio 2008</title><link>http://blogs.msdn.com/bethmassi/archive/2008/01/07/the-new-tableadaptermanager-in-visual-studio-2008.aspx#9918465</link><pubDate>Fri, 06 Nov 2009 09:11:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9918465</guid><dc:creator>Kostas</dc:creator><description>&lt;p&gt;Hi Beth &lt;/p&gt;
&lt;p&gt;I followed your instructions from the video. I set up the commands for the third table , set the relations to cascade but nothing. I put three ENDEDITS . more help would be apreciated&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
</description></item></channel></rss>