<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>Ryan Whitaker - All Comments</title><link>http://weblogs.asp.net/ryanw/default.aspx</link><description>Dishes of Ryan</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>re: Transactions with TableAdapters, a lazy man's approach</title><link>http://weblogs.asp.net/ryanw/archive/2006/03/30/441529.aspx#7208401</link><pubDate>Wed, 16 Sep 2009 18:41:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7208401</guid><dc:creator>Rob Orchiston</dc:creator><description>&lt;p&gt;Yep, this works awesome! Thanks.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7208401" width="1" height="1"&gt;</description></item><item><title>re: Transactions with TableAdapters, a lazy man's approach</title><link>http://weblogs.asp.net/ryanw/archive/2006/03/30/441529.aspx#7163397</link><pubDate>Fri, 07 Aug 2009 09:38:44 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7163397</guid><dc:creator>Pete</dc:creator><description>&lt;p&gt;Works like a charm!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7163397" width="1" height="1"&gt;</description></item><item><title>re: Modify data before it's inserted in SQL Server 2000/2005</title><link>http://weblogs.asp.net/ryanw/archive/2006/02/02/437242.aspx#7146996</link><pubDate>Tue, 14 Jul 2009 07:13:59 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7146996</guid><dc:creator>ilias</dc:creator><description>&lt;p&gt;Waylon is right, the trigger will fail when more than one records are inserted / updated... The problem is the&lt;/p&gt;
&lt;p&gt;SET @x = (SELECT x FROM INSERTED)&lt;/p&gt;
&lt;p&gt;INSERTED will contain multiple records when the insert/update statement affects more than just one record&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7146996" width="1" height="1"&gt;</description></item><item><title>re: Transactions with TableAdapters, a lazy man's approach</title><link>http://weblogs.asp.net/ryanw/archive/2006/03/30/441529.aspx#7116525</link><pubDate>Wed, 10 Jun 2009 19:09:48 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7116525</guid><dc:creator>TD</dc:creator><description>&lt;p&gt;Seems like you are going through a lot of trouble to get the connection off the table adapter passed in. &amp;nbsp;why not just make the connection modifer public and would that not bypass the need to use reflecttion at the TA connection level? &amp;nbsp;If the connection is public, all you have to do is call the begintrans to get the sql trans object.&lt;/p&gt;
&lt;p&gt;As for the internal commands, I don't use them anyway. &lt;/p&gt;
&lt;p&gt;Then, I would suggest creating a generic table adapter that all table adapters would inherit from. &amp;nbsp;You can see the base class property in all table adapters in the designer, just set the base there.&lt;/p&gt;
&lt;p&gt;The generic table adapter should provide &amp;nbsp;a means for setting a transaction to all internal commands.&lt;/p&gt;
&lt;p&gt;This would be my approach if it helps...&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7116525" width="1" height="1"&gt;</description></item><item><title>re: Transactions with TableAdapters, a lazy man's approach</title><link>http://weblogs.asp.net/ryanw/archive/2006/03/30/441529.aspx#7116497</link><pubDate>Wed, 10 Jun 2009 18:54:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7116497</guid><dc:creator>TD</dc:creator><description>&lt;p&gt;Byval and byref are retarded for VB only. &amp;nbsp;Byval means nothing with object (ref) types. &amp;nbsp;Understand the stack vs. heap&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7116497" width="1" height="1"&gt;</description></item><item><title>re: Transactions with TableAdapters, a lazy man's approach</title><link>http://weblogs.asp.net/ryanw/archive/2006/03/30/441529.aspx#6942752</link><pubDate>Fri, 06 Mar 2009 14:44:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6942752</guid><dc:creator>Matt C</dc:creator><description>&lt;p&gt;Just a quick follow-up...&lt;/p&gt;
&lt;p&gt;Is there any reason why, in your TableAdapterHelper class, all the parameters to the functions could not be passed by Reference instead of by Value? &amp;nbsp;In fact, unless I am missing something, this might even be a preferable approach, to save passing copies of TableAdapter and Transaction objects around all over the place.&lt;/p&gt;
&lt;p&gt;Am I right or wrong?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6942752" width="1" height="1"&gt;</description></item><item><title>re: Transactions with TableAdapters, a lazy man's approach</title><link>http://weblogs.asp.net/ryanw/archive/2006/03/30/441529.aspx#6937526</link><pubDate>Wed, 04 Mar 2009 17:22:32 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6937526</guid><dc:creator>Matt C</dc:creator><description>&lt;p&gt;Just another addition to the testimonials by other posters, above...&lt;/p&gt;
&lt;p&gt;Thank you very much for this code, it's great - exactly what I needed. &amp;nbsp;I also agree with you when you say this is probably the best way to implement transactions with Table Adapters.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6937526" width="1" height="1"&gt;</description></item><item><title>?????????????? ?????????????????????????? &amp;#8230;  &amp;raquo; ?????????? ??????????   &amp;raquo; .NET: ???????????????????? ???????????????????????? ?? ???????????????????????????? ???????????????????????????? DataSet.</title><link>http://weblogs.asp.net/ryanw/archive/2006/03/30/441529.aspx#6930291</link><pubDate>Fri, 27 Feb 2009 07:17:46 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6930291</guid><dc:creator>?????????????? ?????????????????????????? …  » ?????????? ??????????   » .NET: ???????????????????? ???????????????????????? ?? ???????????????????????????? ???????????????????????????? DataSet.</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;?????????????? ?????????????????????????? &amp;amp;#8230; &amp;nbsp;&amp;amp;raquo; ?????????? ?????????? &amp;nbsp; &amp;amp;raquo; .NET: ???????????????????? ???????????????????????? ?? ???????????????????????????? ???????????????????????????? DataSet.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6930291" width="1" height="1"&gt;</description></item><item><title>re: Modify data before it's inserted in SQL Server 2000/2005</title><link>http://weblogs.asp.net/ryanw/archive/2006/02/02/437242.aspx#6912016</link><pubDate>Tue, 17 Feb 2009 22:09:56 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6912016</guid><dc:creator>Hernan</dc:creator><description>&lt;p&gt;you can use table variables... @table &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6912016" width="1" height="1"&gt;</description></item><item><title>re: Transactions with TableAdapters, a lazy man's approach</title><link>http://weblogs.asp.net/ryanw/archive/2006/03/30/441529.aspx#6709741</link><pubDate>Wed, 29 Oct 2008 11:13:03 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6709741</guid><dc:creator>grobanderson</dc:creator><description>&lt;p&gt;It seems it doesn't work on Oracle ODBC:&lt;/p&gt;
&lt;p&gt;message is&lt;/p&gt;
&lt;p&gt;&amp;quot;ERROR [HYC00] [Oracle][ODBC]Optional feature not implemented.&amp;quot;&lt;/p&gt;
&lt;p&gt;Someone help me!!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6709741" width="1" height="1"&gt;</description></item></channel></rss>