<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.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>MySQL</title><link>http://forums.asp.net/56.aspx</link><description>Discuss using MySQL as a data store for ASP.NET.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Error: Restricted data type attribute violation</title><link>http://forums.asp.net/thread/299086.aspx</link><pubDate>Mon, 04 Aug 2003 12:29:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:299086</guid><dc:creator>enrico.marzorati</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/299086.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=299086</wfw:commentRss><description>hi Marina-a,
&lt;br /&gt;
you can try :
&lt;br /&gt;

&lt;br /&gt;
......
&lt;br /&gt;

&lt;br /&gt;
         UpdateCommand.CommandText = &amp;quot;UPDATE Settori SET CODSET = ?, DESSET = ?,CODREP = ? WHERE CODSET = ?&amp;quot;
&lt;br /&gt;
     
&lt;br /&gt;

&lt;br /&gt;
     UpdateCommand.Parameters.Add(&amp;quot;@CODSET&amp;quot;, OdbcType.VarChar, 2).Value = cdset
&lt;br /&gt;
     UpdateCommand.Parameters.Add(&amp;quot;@DESSET&amp;quot;, OdbcType.VarChar, 30).Value = dsset
&lt;br /&gt;
     UpdateCommand.Parameters.Add(&amp;quot;@CODREP&amp;quot;, OdbcType.Double).Value = Cdbl(cdrep)
&lt;br /&gt;
     UpdateCommand.Parameters.Add(&amp;quot;@ID&amp;quot;, OdbcType.varchar,2).Value = cdset
&lt;br /&gt;
....
&lt;br /&gt;

&lt;br /&gt;
Use Double instead of Decimal, like  C programming with MySql API !</description></item><item><title>Error: Restricted data type attribute violation</title><link>http://forums.asp.net/thread/258663.aspx</link><pubDate>Wed, 25 Jun 2003 14:49:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:258663</guid><dc:creator>marinaa</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/258663.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=258663</wfw:commentRss><description>I'm using MYSQL ODBC 3.51 Driver and OdbcCommandBuilder update fields in my MySQL database. The type of the fields I'm updating is decimal(6,0) and I'm using version 1.1 of the .Net Framework.
&lt;br /&gt;

&lt;br /&gt;
The error message I get is:
&lt;br /&gt;
&amp;quot;System.Data.Odbc.OdbcException: ERROR [07006] [MySQL][ODBC 3.51 Driver][mysqld-4.0.10-gamma-nt] Restricted data type attribute violation(SQL_C_NUMERIC)&amp;quot;.
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
Any idea?
&lt;br /&gt;
Thanks!</description></item></channel></rss>