<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>t Visual Studio 2010 | DXSdata</title>
	<atom:link href="https://www.dxsdata.com/tag/t-visual-studio-2010/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dxsdata.com</link>
	<description>Software &#124; Network &#124; Administration</description>
	<lastBuildDate>Wed, 27 Jun 2012 10:30:52 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.dxsdata.com/wp-content/uploads/2023/08/cropped-logo-32x32.jpg</url>
	<title>t Visual Studio 2010 | DXSdata</title>
	<link>https://www.dxsdata.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>MySQL Connector .Net MysqlException: Only MySqlParameter objects may be stored</title>
		<link>https://www.dxsdata.com/2012/06/mysql-connector-net-mysqlexception-only-mysqlparameter-objects-may-be-stored/</link>
					<comments>https://www.dxsdata.com/2012/06/mysql-connector-net-mysqlexception-only-mysqlparameter-objects-may-be-stored/#respond</comments>
		
		<dc:creator><![CDATA[ds]]></dc:creator>
		<pubDate>Wed, 27 Jun 2012 10:30:52 +0000</pubDate>
				<category><![CDATA[C# .Net]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[.Ne]]></category>
		<category><![CDATA[Connector]]></category>
		<category><![CDATA[t Visual Studio 2010]]></category>
		<guid isPermaLink="false">http://dev.schausberger.cc/?p=47</guid>

					<description><![CDATA[This exception is thrown e.g. using the following code in C# .Net 2010: Instead, use]]></description>
										<content:encoded><![CDATA[<p>This exception is thrown e.g. using the following code in C# .Net 2010:</p>
<pre class="brush: csharp; title: ; notranslate">

MySqlCommand cmd = new MySqlCommand(&quot;insert into common_history(datetime, username, text) values (@datetime, @username, @text)&quot;, adapter.UpdateCommand.Connection);
cmd.Parameters.Add(DateTime.Now);
cmd.Parameters.Add(Environment.UserName);
cmd.Parameters.Add(text);
cmd.BeginExecuteNonQuery();
cmd.Dispose();

</pre>
<p>Instead, use</p>
<pre class="brush: csharp; title: ; notranslate">

MySqlCommand cmd = new MySqlCommand(&quot;insert into common_history(datetime, username, text) values (@datetime, @username, @text)&quot;, adapter.UpdateCommand.Connection);
cmd.Parameters.AddWithValue(&quot;@datetime&quot;, DateTime.Now);
cmd.Parameters.AddWithValue(&quot;@username&quot;,Environment.UserName);
cmd.Parameters.AddWithValue(&quot;@text&quot;, text);
cmd.BeginExecuteNonQuery();
cmd.Dispose();

</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dxsdata.com/2012/06/mysql-connector-net-mysqlexception-only-mysqlparameter-objects-may-be-stored/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
