<?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>SQLdatasource + gridview + mysql</title><link>http://forums.asp.net/thread/1362919.aspx</link><pubDate>Mon, 07 Aug 2006 09:30:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1362919</guid><dc:creator>jimmy28</dc:creator><author>jimmy28</author><slash:comments>54</slash:comments><comments>http://forums.asp.net/thread/1362919.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=1362919</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a sqldatasource and a gridview. I work with a mysql 3.51 database.&lt;/p&gt;
&lt;p&gt;My problem is : &lt;/p&gt;
&lt;p&gt;When I try tu update a record through the update command of the gridview, it doesn't work.&amp;nbsp; Here is my code : &lt;/p&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;SqlDataSource&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ID&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="SQL_Panier"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;runat&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=server&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ConnectionString&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="&lt;/font&gt;&lt;font size=2&gt;&amp;lt;%$ ConnectionStrings:Connection to NI %&amp;gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ProviderName&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="&lt;/font&gt;&lt;font size=2&gt;&amp;lt;%$ ConnectionStrings:Connection to NI.ProviderName %&amp;gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;SelectCommand&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="selectcommand"&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#ff0000 size=2&gt;UpdateCommand&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Update Panier SET qtt=@qtt,commentaires=@commentaires WHERE email=?"&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#ff0000 size=2&gt;DeleteCommand&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="delete from Panier where email=? and code=@code"&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;SelectParameters&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;SessionParameter&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Name&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="?"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;SessionField&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="email"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;SelectParameters&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;
&lt;p&gt;&amp;lt;/&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;SqlDataSource&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;Voici votre panier :&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;br&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;br&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;GridView&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ID&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Grille_Panier"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;runat&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="server"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;AllowPaging&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="True"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;AllowSorting&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="True"&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#ff0000 size=2&gt;AutoGenerateColumns&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="False"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;DataSourceID&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="SQL_Panier"&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;Columns&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;CommandField&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ShowSelectButton&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="True"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;CommandField&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ShowEditButton&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="True"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;CommandField&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ShowDeleteButton&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="True"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;BoundField&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;DataField&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="code"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;HeaderText&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="code"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;SortExpression&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="code"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ReadOnly&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="True"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;BoundField&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;DataField&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="courte"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;HeaderText&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="courte"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;SortExpression&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="courte"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ReadOnly&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="True"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;BoundField&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;DataField&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="qtt"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;HeaderText&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="qtt"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;SortExpression&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="qtt"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;BoundField&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;DataField&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="prixttc"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;HeaderText&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="prixttc"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;SortExpression&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="prixttc"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;ReadOnly&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="True"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;BoundField&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;DataField&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="commentaires"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;HeaderText&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="commentaires"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;SortExpression&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="commentaires"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;Columns&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;EmptyDataTemplate&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;Actuellement, votre panier ne contient aucun produit.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;EmptyDataTemplate&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;/&lt;/font&gt;&lt;font color=#800000 size=2&gt;asp&lt;/font&gt;&lt;font color=#0000ff size=2&gt;:&lt;/font&gt;&lt;font color=#800000 size=2&gt;GridView&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;The select command works but not the update command!!!!&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;Can you help me please?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;Thanks&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Extract the first sentance from a field in mqsql database - asp.net</title><link>http://forums.asp.net/thread/3531264.aspx</link><pubDate>Wed, 25 Nov 2009 02:44:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3531264</guid><dc:creator>binnsy87</dc:creator><author>binnsy87</author><slash:comments>12</slash:comments><comments>http://forums.asp.net/thread/3531264.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3531264</wfw:commentRss><description>&lt;p&gt;Hello People,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I am creating a news website which displays news headlines which are hyperlinked, when a specific headline is click it goes to another page which displays the full article... &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;My question is : on the main page where the headlines display, I want to show the first sentance of the article underneath so the reader can see what the articles aboutI have a grideview on my page but am not sure how to just show the first sentance of the article instead of the full thing withought putting the first sentance in a seperate field...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Any help would be greatly appreciated&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Marc&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Need help - alter time stamps based on time record written</title><link>http://forums.asp.net/thread/3496714.aspx</link><pubDate>Thu, 05 Nov 2009 18:50:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3496714</guid><dc:creator>bbcompent1</dc:creator><author>bbcompent1</author><slash:comments>31</slash:comments><comments>http://forums.asp.net/thread/3496714.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3496714</wfw:commentRss><description>&lt;p&gt;Ok, let me see if I can make this understandable in human language.&lt;/p&gt;&lt;p&gt;I have a table that gets written into in batches of 30 records every 2 1/2 hours by cellular modem. There is currently a procedure that parses these batch records into individual records. The problem is the time and date on the records is wrong. However, I am capturing the time at which the last record comes in. The readings are taken every five minutes. &lt;/p&gt;&lt;p&gt;What I&amp;#39;d like to know how to do is to take the time/date of the records and change their time based on the last record. Logically, this is how I envision this.&lt;/p&gt;&lt;p&gt;Batch gets written at 11-04-2009 13:47:52&lt;/p&gt;&lt;p&gt;Change time/date stamp on last record to match record written date.&lt;/p&gt;&lt;p&gt;For each previous record, subtract 5 minutes from last record to correct the time/date stamp.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve never written procedures for MySQL so I kinda feel like the&amp;nbsp;village&amp;nbsp;idiot here. Thanks :)&lt;/p&gt;</description></item><item><title>Establishing a database connection using Putty to tunnel over SSH</title><link>http://forums.asp.net/thread/3530533.aspx</link><pubDate>Tue, 24 Nov 2009 17:43:29 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3530533</guid><dc:creator>NicoleVT2000</dc:creator><author>NicoleVT2000</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3530533.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3530533</wfw:commentRss><description>&lt;p&gt;I currently have an ASP.NET web application that is using a MySQL database as the source data. I would like to connect to this database using the standard MySQL listening port of 3306 and tunnel the database connection over SSH (Port 22). I have Putty on my Web server and will configure Putty to do Port Redirection (3306 &amp;gt; 22 &amp;gt; 3306). I would like my web application to first open the Putty connection (somehow have my web application pass the credentials to the server via Putty) which would establish an SSH connection to the distant server. Once that SSH connection is established, I would then establish a standard MySQL database connection using a connection string. I would prefer not to leave the SSH connection open all the time and want Logi to handle both the SSH and database connection calls only when it is needed. This methodology of tunneling a database connection over SSH is not MySQL specific and could be used to securely tunnel any database connection. Has anyone done anything like this and if so could you provide me with how you had the web application establish these connection calls? &lt;/p&gt;</description></item><item><title>MySQL and timeout connection issues</title><link>http://forums.asp.net/thread/3526077.aspx</link><pubDate>Sun, 22 Nov 2009 05:19:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3526077</guid><dc:creator>learning.aspnet</dc:creator><author>learning.aspnet</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3526077.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3526077</wfw:commentRss><description>&lt;p&gt;Hello,
&lt;/p&gt;&lt;p&gt;I am having terrible time. I have deployed my website. I have developed the website using ASP.NET 3.5 and the database used is MySQL. I have used MySQL Connector and have not used any DataSet.&lt;/p&gt;&lt;p&gt;Every morning when I wake up, I have got the below message:-&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration:underline;"&gt;Timeout expired.&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration:underline;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration:underline;"&gt;The timeout period elapsed prior to obtaining a connection from the pool.&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration:underline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration:underline;"&gt;This may have occurred because all pooled connections were in use and max pool size was reached.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Then I replace one file (from App_Code) which shows the error to the server. and probably the connection pool is reset. The website then works fine. Obviously that is not a feasible solution.&lt;/p&gt;&lt;ol&gt;&lt;li&gt;I have looked for all leaked connections in the code but could not find any. I am closing all connections and datareader manually.&lt;/li&gt;&lt;li&gt;However, I found that I am passing DataReader as argument. But I believe since it is sent as reference, so I think I am here too.&lt;/li&gt;&lt;li&gt;I have noticed that I dont Dispose MySqlCommand object manually. Is this could be cause of the problem ?&lt;/li&gt;&lt;li&gt;I have tried to opened my instances ( I think 100+) on local machine but could not replicate it my end. How can I replicate this issue at my end ?&lt;/li&gt;&lt;li&gt;Does by copying a .cs file reset the connection pool ? Is my assumption correct ?&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I am really having a tough time. Can somebody please help me. I shall be very grateful to him.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to filter mysql data Row in asp.net?</title><link>http://forums.asp.net/thread/3187010.aspx</link><pubDate>Tue, 26 May 2009 05:42:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3187010</guid><dc:creator>Muhammad Kashan Khan</dc:creator><author>Muhammad Kashan Khan</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3187010.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3187010</wfw:commentRss><description>Hi there.

I need to filter the Row from mySQL table. i m using 

_dv.RowFilter = &amp;quot;ResourceKey=&amp;quot; + mResourceKey + &amp;quot; AND ifnull(UR.SectionOptionID,0)&amp;lt;&amp;gt;0 AND isnull(SO.OptionTitle)&amp;quot;; 

but it is telling me that Ifnull and isnull not recognized function. 
what i do
Plz help.

</description></item><item><title>VS versional Support</title><link>http://forums.asp.net/thread/3522914.aspx</link><pubDate>Fri, 20 Nov 2009 00:03:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3522914</guid><dc:creator>kwcoffee1</dc:creator><author>kwcoffee1</author><slash:comments>7</slash:comments><comments>http://forums.asp.net/thread/3522914.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3522914</wfw:commentRss><description>&lt;div&gt;&lt;font size="2" face="Arial"&gt;Hi,&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2" face="Arial"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font size="2" face="Arial"&gt;Currently, I programming with VS2008 Standard. This version do not support the MySQL c/NET add-in. So, can I purchase the VS2010 Pro &lt;strong&gt;Upgrade version&lt;/strong&gt; ? &lt;/font&gt;&lt;font size="2" face="Arial"&gt;Moving form the Std to the Pro and 2008 to 2010.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2" face="Arial"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font size="2" face="Arial"&gt;Sincerely,&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2" face="Arial"&gt;King&lt;/font&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>MySQL and timeout connection issues</title><link>http://forums.asp.net/thread/3526137.aspx</link><pubDate>Sun, 22 Nov 2009 07:36:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3526137</guid><dc:creator>learning.aspnet</dc:creator><author>learning.aspnet</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3526137.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3526137</wfw:commentRss><description>&lt;p&gt;Hello,

&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I am having terrible time. I have deployed my website. I have developed the website using ASP.NET 3.5 and the database used is MySQL. I have used MySQL Connector and have not used any DataSet.
&lt;/p&gt;&lt;p&gt;
Every morning when I wake up, I have got the below message:-
&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="text-decoration:underline;"&gt;
Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.   This may have occurred because all pooled connections were in use and max pool size was reached.
&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;
Then I replace one file (from App_Code) which shows the error to the server. and probably the connection pool is reset. The website then works fine. Obviously that is not a feasible solution.&lt;/p&gt;&lt;ol&gt;&lt;li&gt;I have looked for all leaked connections in the code but could not find any.I am closing all connections and datareader manually.&amp;nbsp;&lt;/li&gt;&lt;li&gt;However, I found that I am passing DataReader as argument. But I believe since it is sent as reference, so I think I am fine here too.&lt;/li&gt;&lt;li&gt;I have noticed that I dont Dispose MySqlCommand object manually. Is this could be cause of the problem ?&lt;/li&gt;&lt;li&gt;I have tried to opened my instances ( I think 100+) on local machine but could not replicate it my end.&lt;/li&gt;&lt;li&gt;How can I replicate this issue at my end ?
Does by copying a .cs file reset the connection pool ? Is my assumption correct ?&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I am really having a tough time. Can somebody please help me. I shall be very grateful to him.&lt;/p&gt;</description></item><item><title>Plural search in mysql</title><link>http://forums.asp.net/thread/3517418.aspx</link><pubDate>Tue, 17 Nov 2009 11:24:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3517418</guid><dc:creator>senthilkumar.moorthy</dc:creator><author>senthilkumar.moorthy</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3517418.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3517418</wfw:commentRss><description>&lt;p&gt;consider a table have the record for both the &amp;quot;cover&amp;quot; and &amp;quot;covers&amp;quot; so,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;when i do the like keyword search with &amp;quot;cover&amp;quot; text will return both the record that have cover,covers&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;but when i use like with &amp;quot;covers&amp;quot; it return only the record that have the text &amp;quot;covers&amp;quot; but i want return both .&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to update two tables using code behind/session vars</title><link>http://forums.asp.net/thread/3516241.aspx</link><pubDate>Mon, 16 Nov 2009 21:08:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3516241</guid><dc:creator>bbcompent1</dc:creator><author>bbcompent1</author><slash:comments>8</slash:comments><comments>http://forums.asp.net/thread/3516241.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3516241</wfw:commentRss><description>&lt;p&gt;Hello all, I&amp;#39;m getting farther along but seem to have hit a snag. I am trying to update two tables when user hits submit button via code behind. I have my queries written and I&amp;#39;ve set the session vars so I can do an update query. The main problem I have is I am confused on how to do a query from code behind. I used to know but I&amp;#39;ve forgotten, guess the old don&amp;#39;t use it you lose it story is true. Does anyone have a simple example of this? Any assistance would be greatly appreciated and thanks in advance.&lt;/p&gt;</description></item><item><title>Can't send parameters to a MySQL Stored Procedure</title><link>http://forums.asp.net/thread/2863341.aspx</link><pubDate>Tue, 13 Jan 2009 02:37:29 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2863341</guid><dc:creator>detzey</dc:creator><author>detzey</author><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/2863341.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=2863341</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi everyone!&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m having a problem to send parameters to MySQL Stored Procedure.&lt;/p&gt;Here&amp;#39;s the C# code:&amp;nbsp; &lt;br /&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; (MySqlConnection cn = &lt;span class="kwd"&gt;new&lt;/span&gt; MySqlConnection(&lt;span class="kwd"&gt;this&lt;/span&gt;.ConnectionString))
&lt;b id="2"&gt;2    &lt;/b&gt;{
&lt;b id="3"&gt;3    &lt;/b&gt;    MySqlCommand cmd = &lt;span class="kwd"&gt;new&lt;/span&gt; MySqlCommand(&lt;span class="st"&gt;&amp;quot;isy_Articles_InsertCategory&amp;quot;&lt;/span&gt;, cn);
&lt;b id="4"&gt;4    &lt;/b&gt;    cmd.CommandType = CommandType.StoredProcedure;
&lt;b id="5"&gt;5    &lt;/b&gt;    cmd.Parameters.Add(&lt;span class="st"&gt;&amp;quot;?pAddedDate&amp;quot;&lt;/span&gt;, MySqlDbType.DateTime).Value = category.AddedDate;
&lt;b id="6"&gt;6    &lt;/b&gt;    cmd.Parameters.Add(&lt;span class="st"&gt;&amp;quot;?pAddedBy&amp;quot;&lt;/span&gt;, MySqlDbType.VarChar).Value = category.AddedBy;
&lt;b id="7"&gt;7    &lt;/b&gt;    cmd.Parameters.Add(&lt;span class="st"&gt;&amp;quot;?pTitle&amp;quot;&lt;/span&gt;, MySqlDbType.VarChar).Value = category.Title;
&lt;b id="8"&gt;8    &lt;/b&gt;    cmd.Parameters.Add(&lt;span class="st"&gt;&amp;quot;?pImportance&amp;quot;&lt;/span&gt;, MySqlDbType.Int32).Value = category.Importance;
&lt;b id="9"&gt;9    &lt;/b&gt;    cmd.Parameters.Add(&lt;span class="st"&gt;&amp;quot;?pImageUrl&amp;quot;&lt;/span&gt;, MySqlDbType.VarChar).Value = category.ImageUrl;
&lt;b id="10"&gt;10   &lt;/b&gt;    cmd.Parameters.Add(&lt;span class="st"&gt;&amp;quot;?pDescription&amp;quot;&lt;/span&gt;, MySqlDbType.VarChar).Value = category.Description;
&lt;b id="11"&gt;11   &lt;/b&gt;    cmd.Parameters.Add(&lt;span class="st"&gt;&amp;quot;?pCategoryID&amp;quot;&lt;/span&gt;, MySqlDbType.Int32).Direction = ParameterDirection.Output;
&lt;b id="12"&gt;12   &lt;/b&gt;    cn.Open();
&lt;b id="13"&gt;13   &lt;/b&gt;    &lt;span class="cmt"&gt;//int ret = ExecuteNonQuery(cmd);
&lt;b id="14"&gt;14   &lt;/b&gt;    //return Convert.ToInt32(cmd.Parameters[&amp;quot;@CategoryID&amp;quot;].Value);&lt;/span&gt;
&lt;b id="15"&gt;15   &lt;/b&gt;    &lt;span class="kwd"&gt;return&lt;/span&gt; ExecuteNonQuery(cmd);
&lt;b id="16"&gt;16   &lt;/b&gt;}
&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;&lt;/b&gt;Here&amp;#39;s my stord procedure:&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;&lt;span class="sqlkwd"&gt;CREATE&lt;/span&gt; DEFINER=`institutosha`@`%` &lt;span class="sqlkwd"&gt;PROCEDURE&lt;/span&gt; `isy_Articles_InsertCategory`(
&lt;b id="2"&gt;2    &lt;/b&gt;&lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; AddedDate &lt;span class="sqlkwd"&gt;DATETIME&lt;/span&gt;,
&lt;b id="3"&gt;3    &lt;/b&gt;&lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; AddedBy &lt;span class="sqlkwd"&gt;VARCHAR&lt;/span&gt;( 256 ) ,
&lt;b id="4"&gt;4    &lt;/b&gt;&lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; Title &lt;span class="sqlkwd"&gt;VARCHAR&lt;/span&gt;( 256 ) ,
&lt;b id="5"&gt;5    &lt;/b&gt;&lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; Importance &lt;span class="sqlkwd"&gt;INT&lt;/span&gt;,
&lt;b id="6"&gt;6    &lt;/b&gt;&lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; &lt;span class="sqlkwd"&gt;Description&lt;/span&gt; MEDIUMTEXT,
&lt;b id="7"&gt;7    &lt;/b&gt;&lt;span class="sqlkwd3"&gt;IN&lt;/span&gt; ImageUrl &lt;span class="sqlkwd"&gt;VARCHAR&lt;/span&gt;( 256 ) ,
&lt;b id="8"&gt;8    &lt;/b&gt;&lt;span class="sqlkwd"&gt;OUT&lt;/span&gt; CategoryID &lt;span class="sqlkwd"&gt;INT&lt;/span&gt;)
&lt;b id="9"&gt;9    &lt;/b&gt;&lt;span class="sqlkwd"&gt;BEGIN
&lt;b id="10"&gt;10   &lt;/b&gt;
&lt;b id="11"&gt;11   &lt;/b&gt;DECLARE&lt;/span&gt; pCurrID &lt;span class="sqlkwd"&gt;int&lt;/span&gt;;
&lt;b id="12"&gt;12   &lt;/b&gt;
&lt;b id="13"&gt;13   &lt;/b&gt;&lt;span class="sqlkwd"&gt;SELECT&lt;/span&gt; pCurrID = CategoryID
&lt;b id="14"&gt;14   &lt;/b&gt;&lt;span class="sqlkwd"&gt;FROM&lt;/span&gt; isy_Categories
&lt;b id="15"&gt;15   &lt;/b&gt;&lt;span class="sqlkwd"&gt;WHERE&lt;/span&gt; &lt;span class="sqlkwd2"&gt;LOWER&lt;/span&gt;( pTitle ) = &lt;span class="sqlkwd2"&gt;LOWER&lt;/span&gt;( Title ) ;
&lt;b id="16"&gt;16   &lt;/b&gt;
&lt;b id="17"&gt;17   &lt;/b&gt;&lt;span class="sqlkwd"&gt;IF&lt;/span&gt; pCurrID &lt;span class="sqlkwd"&gt;IS&lt;/span&gt; &lt;span class="sqlkwd3"&gt;NOT NULL&lt;/span&gt; &lt;span class="sqlkwd"&gt;THEN
&lt;b id="18"&gt;18   &lt;/b&gt;SET&lt;/span&gt; CategoryID = -1;
&lt;b id="19"&gt;19   &lt;/b&gt;&lt;span class="sqlkwd"&gt;END IF&lt;/span&gt;;
&lt;b id="20"&gt;20   &lt;/b&gt;
&lt;b id="21"&gt;21   &lt;/b&gt;&lt;span class="sqlkwd"&gt;INSERT INTO&lt;/span&gt; isy_Categories(
&lt;b id="22"&gt;22   &lt;/b&gt;AddedDate,
&lt;b id="23"&gt;23   &lt;/b&gt;AddedBy,
&lt;b id="24"&gt;24   &lt;/b&gt;Title,
&lt;b id="25"&gt;25   &lt;/b&gt;Importance,
&lt;b id="26"&gt;26   &lt;/b&gt;&lt;span class="sqlkwd"&gt;Description&lt;/span&gt;,
&lt;b id="27"&gt;27   &lt;/b&gt;ImageUrl
&lt;b id="28"&gt;28   &lt;/b&gt;)
&lt;b id="29"&gt;29   &lt;/b&gt;&lt;span class="sqlkwd"&gt;VALUES&lt;/span&gt; (
&lt;b id="30"&gt;30   &lt;/b&gt;AddedDate, AddedBy, Title, Importance, &lt;span class="sqlkwd"&gt;Description&lt;/span&gt;, ImageUrl);
&lt;b id="31"&gt;31   &lt;/b&gt;
&lt;b id="32"&gt;32   &lt;/b&gt;&lt;span class="sqlkwd"&gt;SET&lt;/span&gt; CategoryID = last_insert_id( ) ;
&lt;b id="33"&gt;33   &lt;/b&gt;
&lt;b id="34"&gt;34   &lt;/b&gt;&lt;span class="sqlkwd"&gt;END&lt;/span&gt;  
&lt;/pre&gt;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;I had tried replacing the ? by @ or by nothing and none worked.&lt;/pre&gt;&lt;pre class="coloredcode"&gt;I&amp;#39;m using  MySQL 5.1 and MySQL Connector NET 5.1.7 with .NET Framework 2.0.&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;I have goggleed a lot and haven&amp;#39;t found anything yet so I would be apreciate if someone helps me.&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;Thanks &lt;br /&gt;&lt;/pre&gt;&amp;nbsp;&amp;nbsp;</description></item><item><title>asp.net  gridview using mysql, Will not update if PK column is not visible</title><link>http://forums.asp.net/thread/3520702.aspx</link><pubDate>Thu, 19 Nov 2009 01:16:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3520702</guid><dc:creator>TinyPond</dc:creator><author>TinyPond</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3520702.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3520702</wfw:commentRss><description>&lt;p&gt;I have a asp.net webform&amp;nbsp; on it I have a sqldatasource&amp;nbsp;&amp;nbsp; and a gridview that has two columns a primary key and a description .&amp;nbsp; ( I have more columns in my gridview, however in debugging this ,I have reduced this problem down to two columns,  a primary key and another column in order to keep this problem simple)&lt;/p&gt;&lt;pre name="code"&gt;
&lt;/pre&gt;&lt;p&gt;The problem I am having is I do not want to display the primary key since it is an autogenerated number and I do not want the user thinking they can change it.&lt;/p&gt;&lt;p&gt;However&amp;nbsp; within my gridview In order for the save command&amp;nbsp; to work I must add the following &lt;/p&gt;&lt;pre name="code"&gt;&lt;pre name="code"&gt;&amp;lt;asp:BoundField HeaderText=&amp;quot;CampaignID&amp;quot;&lt;br /&gt;                 DataField=&amp;quot;CampaignID&amp;quot;&lt;br /&gt;                  SortExpression=&amp;quot;CampaignID&amp;quot;&amp;gt;&amp;lt;/asp:BoundField&amp;gt;&lt;br /&gt;&lt;br /&gt;This works!  and displays the two columns, but if I change the &lt;u&gt;readonly propertly to true&lt;/u&gt; or set&lt;u&gt; visible property to false&lt;/u&gt;&lt;br /&gt;it will not work.&lt;br /&gt;If I change the  boundField to a templateField it will not work either. So the only time I can get it to work is by making &lt;br /&gt;it a boundField and setting it to be visible.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If I add remove it will not save on update.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have include a script to construct the table along with the code  that is not working and would appreciate if someone would provide some insight to this problem.&lt;br /&gt;&lt;br /&gt;Just for fun I ran created a similar table in SQL SERVER and it the  &lt;b&gt;ReadOnly=&amp;quot;True&amp;quot;&lt;/b&gt;&amp;nbsp;  and/or  &lt;b&gt;Visible=&amp;quot;false&amp;quot;&lt;br /&gt;&lt;/b&gt;both work fine.&lt;br /&gt;&lt;br /&gt;Not sure how everyone else is dealing with this problem&lt;br /&gt;I am using the connector/Net 6.1 provider for mysql  http://dev.mysql.com/downloads/connector/net/6.1.html&lt;/pre&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;&lt;pre name="code" class="c-sharp:nogutter:collapse:nocontrols:showcolumns"&gt;MySQL Table

CREATE TABLE `tblCouponCampaignMaster` (
  `CampaignID` int(10) unsigned NOT NULL auto_increment,
  `Description` varchar(145) default NULL,
    PRIMARY KEY  (`CampaignID`),
) ENGINE=InnoDB AUTO_INCREMENT=2048 DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;


Form1.Aspx

&amp;lt;asp:SqlDataSource ID=&amp;quot;SqlDataSource1&amp;quot; runat=&amp;quot;server&amp;quot;
        ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:MyRastarConnectionStr %&amp;gt;&amp;quot;
        DeleteCommand=&amp;quot;DELETE FROM tblCouponCampaignMaster  WHERE CampaignID = @CampaignID&amp;quot;
        InsertCommand=&amp;quot;INSERT INTO tblCouponCampaignMaster (Description) VALUES (@Description)&amp;quot;
        

        ProviderName=&amp;quot;&amp;lt;%$ ConnectionStrings:MyRastarConnectionStr.ProviderName %&amp;gt;&amp;quot;
        SelectCommand=&amp;quot;SELECT CampaignID, Description
                       FROM stag_aff_rastar.tblCouponCampaignMaster;&amp;quot;
 
        UpdateCommand=&amp;quot;UPDATE tblCouponCampaignMaster SET Description = @Description
                                                          WHERE CampaignID = @CampaignID&amp;quot;&amp;gt;
        &amp;lt;DeleteParameters&amp;gt;
            &amp;lt;asp:Parameter Name=&amp;quot;CampaignID&amp;quot; Type=&amp;quot;Int32&amp;quot; /&amp;gt;
        &amp;lt;/DeleteParameters&amp;gt;
        &amp;lt;UpdateParameters&amp;gt;
            &amp;lt;asp:Parameter Name=&amp;quot;CampaignID&amp;quot; Type=&amp;quot;Int32&amp;quot; /&amp;gt;
            &amp;lt;asp:Parameter Name=&amp;quot;Description&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
        &amp;lt;/UpdateParameters&amp;gt;
        &amp;lt;InsertParameters&amp;gt;
            &amp;lt;asp:Parameter Name=&amp;quot;CampaignID&amp;quot; Type=&amp;quot;Int32&amp;quot; /&amp;gt;
            &amp;lt;asp:Parameter Name=&amp;quot;Description&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;
           

           
        &amp;lt;/InsertParameters&amp;gt;
    &amp;lt;/asp:SqlDataSource&amp;gt;
    
    
     
    
    
    

    &amp;lt;asp:GridView ID=&amp;quot;GridView1&amp;quot; runat=&amp;quot;server&amp;quot; AllowPaging=&amp;quot;True&amp;quot;
        AllowSorting=&amp;quot;True&amp;quot; CellPadding=&amp;quot;4&amp;quot; DataSourceID=&amp;quot;SqlDataSource1&amp;quot;
        ForeColor=&amp;quot;#333333&amp;quot; PageSize=&amp;quot;20&amp;quot;
        AutoGenerateColumns=&amp;quot;False&amp;quot;&amp;gt;
        &amp;lt;RowStyle BackColor=&amp;quot;#F7F6F3&amp;quot; ForeColor=&amp;quot;#333333&amp;quot; /&amp;gt;
        &amp;lt;Columns&amp;gt;
            &amp;lt;asp:CommandField ShowDeleteButton=&amp;quot;True&amp;quot; ShowEditButton=&amp;quot;True&amp;quot;
                ShowSelectButton=&amp;quot;True&amp;quot; /&amp;gt;
              &amp;lt;asp:BoundField HeaderText=&amp;quot;CampaignID&amp;quot;
                 DataField=&amp;quot;CampaignID&amp;quot;
                  SortExpression=&amp;quot;CampaignID&amp;quot;&amp;gt;&amp;lt;/asp:BoundField&amp;gt;    
             &amp;lt;asp:BoundField HeaderText=&amp;quot;Coupon Description&amp;quot;
                 DataField=&amp;quot;Description&amp;quot;
                 SortExpression=&amp;quot;Description&amp;quot;&amp;gt;&amp;lt;/asp:BoundField&amp;gt;   
              
                
            
                
        &amp;lt;/Columns&amp;gt;
        &amp;lt;FooterStyle BackColor=&amp;quot;#5D7B9D&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;White&amp;quot; /&amp;gt;
        &amp;lt;PagerStyle BackColor=&amp;quot;#284775&amp;quot; ForeColor=&amp;quot;White&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot; /&amp;gt;
        &amp;lt;SelectedRowStyle BackColor=&amp;quot;#E2DED6&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;#333333&amp;quot; /&amp;gt;
        &amp;lt;HeaderStyle BackColor=&amp;quot;#5D7B9D&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;White&amp;quot; /&amp;gt;
        &amp;lt;EditRowStyle BackColor=&amp;quot;#999999&amp;quot; /&amp;gt;
        &amp;lt;AlternatingRowStyle BackColor=&amp;quot;White&amp;quot; ForeColor=&amp;quot;#284775&amp;quot; /&amp;gt;
    &amp;lt;/asp:GridView&amp;gt;


&lt;/pre&gt;&lt;br /&gt; 
&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>migrating the entire database from sql server to mysql</title><link>http://forums.asp.net/thread/3519622.aspx</link><pubDate>Wed, 18 Nov 2009 12:04:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3519622</guid><dc:creator>dude_123</dc:creator><author>dude_123</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3519622.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3519622</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I want to move the database of my asp.net application
from one server(sql server 2005) to another(mysql).The new server use
mysql and it is a linux server.My first doubt is whether it is even
possible to migrate the db without any problems........can i face any
compatibility issues or any other problems.&lt;/p&gt;
&lt;p&gt;thanks in advance.&lt;/p&gt;</description></item><item><title>MySQL Net Connector 5.1.7</title><link>http://forums.asp.net/thread/3509499.aspx</link><pubDate>Thu, 12 Nov 2009 19:07:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3509499</guid><dc:creator>wallace740</dc:creator><author>wallace740</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3509499.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3509499</wfw:commentRss><description>&lt;p&gt;I made my website using MySQL Connector 6.1.2 but when it comes to publishing the website.&lt;br /&gt;The hosting company told me that they only support up to MySQL Connector 5.1.7.&lt;/p&gt;
&lt;p&gt;I uninstalled 6.1.2 and installed 5.1.7 but now Visual Studio doesnt see the MySQL Database.&lt;br /&gt;I uninstalled 5.1.7 and reinstalled 6.1.2 and it works back again.&lt;/p&gt;
&lt;p&gt;Somethings wrong with the 5.1.7 version of MySQL Connector.&lt;br /&gt;I Add Reference(MySQL.dll) to my project&lt;br /&gt;I checked the machine config and it seems ok,there are assemblies regarding to MySQL so it is registered but it is not integrated into Visual Studio :(&lt;/p&gt;
&lt;p&gt;Any idea about this issue? &lt;/p&gt;</description></item><item><title>Writing trigger is driving me crazy</title><link>http://forums.asp.net/thread/3511333.aspx</link><pubDate>Fri, 13 Nov 2009 16:24:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3511333</guid><dc:creator>bbcompent1</dc:creator><author>bbcompent1</author><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/3511333.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3511333</wfw:commentRss><description>&lt;p&gt;Ok, I&amp;#39;m trying to create a trigger for my database and from all the various internet sources, my syntax should be fine but MySQL is not agreeing. The trigger I&amp;#39;m writing is (line numbers just for ease of reading):&lt;/p&gt;&lt;p&gt;1 create trigger tr_bi_ewise_slice before insert on&lt;br /&gt;2 ewise_slice for each row&lt;br /&gt;3&lt;br /&gt;4 BEGIN&lt;br /&gt;5 set new.slice_timestamp := dateAdd(now(),INTERVAL -5 MINUTE)&lt;br /&gt;6 END&lt;/p&gt;&lt;p&gt;It gives me this:&lt;br /&gt;&lt;/p&gt;&lt;div&gt;#1064 - You have an error in your SQL syntax; check the manual 
that corresponds to your MySQL server version for the right syntax to use near 
&amp;#39;) END&amp;#39; at line 5&lt;/div&gt;&lt;p&gt;I really dont see what it is that I&amp;#39;m doing wrong, can anyone tell me what is wrong with my syntax? According to http://www.databasejournal.com/features/mysql/article.php/2190421/MySQL-date-and-time-functions-Part-2.htm the format of my query should be fine.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Godaddy and mysql with asp.net</title><link>http://forums.asp.net/thread/3515595.aspx</link><pubDate>Mon, 16 Nov 2009 15:14:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3515595</guid><dc:creator>dreamitaspdotnet</dc:creator><author>dreamitaspdotnet</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3515595.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3515595</wfw:commentRss><description>&lt;p&gt;Hi friends,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I created a site with asp.net and mysql , and ofcourse it works great in localhost. I tried to host with godaddy...wow it is not working. The reason is godaddy hosting security&amp;nbsp;is set to medium trust level and the mysql.data.dll assembly does not allow the partially trusted callers to get connected.&lt;/p&gt;
&lt;p&gt;And i found the work around solution&amp;nbsp;in the following post&lt;/p&gt;
&lt;p&gt;&lt;a href="http://forums.asp.net/t/999456.aspx"&gt;http://forums.asp.net/t/999456.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and this is what recommended in the godaddy support site aswell&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So i recompiled the dll file and tried in my local system, it is working fine...When i uploaded the recompiled dll to the godaddy hosting and tried to run&lt;/p&gt;
&lt;p&gt;it is still showing the following error&lt;/p&gt;
&lt;h2&gt;&lt;i&gt;Security Exception&lt;/i&gt; &lt;/h2&gt;
&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&gt;The application attempted to perform an operation not allowed by the security policy. &amp;nbsp;To grant this application the required permission please contact your system administrator or change the application&amp;#39;s trust level in the configuration file. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.Security.SecurityException: System.Security.Permissions.SecurityPermission&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;and i complained to them again, they told me to develop the site to run in medium trust level or buy a virtual server.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;any help to overccome this is verymuch appreciated.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;thanks in advance&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>using LIMIT in sub query? (in code behind)</title><link>http://forums.asp.net/thread/3514950.aspx</link><pubDate>Mon, 16 Nov 2009 09:42:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3514950</guid><dc:creator>Boddam</dc:creator><author>Boddam</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3514950.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3514950</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I would like to include LIMIT in a subquery and although it is not fully supported yet by MySQL there is a workaround posted. It&amp;#39;s working fine when I try it in MySQL Query Browser but how can I get it to work using a MySqlDataAdapter in code behind? I get the error @i is not declared. I assume the problem is executing two seperate queries but I don&amp;#39;t know.&lt;/p&gt;&lt;p&gt;If anyone has an idea please let me know, thanks.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;There is a workaround for the use of LIMIT in a subquery, just use a variable (seperate query, execute this one first):&lt;br /&gt;&lt;/p&gt;&lt;p&gt;SET @i = 0;&lt;br /&gt;&lt;br /&gt;And then the select-query with the subquery including the LIMIT:&lt;br /&gt;SELECT &lt;br /&gt;  * &lt;br /&gt;FROM &lt;br /&gt;  my_table &lt;br /&gt;WHERE &lt;br /&gt;  id_my_other_table IN( &lt;br /&gt;    SELECT id FROM my_other_table &lt;br /&gt;    WHERE &lt;br /&gt;      ( @i := ( @i +1 ) ) &amp;lt;= 10 &lt;br /&gt;  );&lt;br /&gt;&lt;br /&gt;In this case there&amp;#39;s a limit of 10 results in the subquery.&lt;/p&gt;</description></item><item><title>Foreign key constraint problem</title><link>http://forums.asp.net/thread/3502348.aspx</link><pubDate>Mon, 09 Nov 2009 16:31:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3502348</guid><dc:creator>GoranPersson</dc:creator><author>GoranPersson</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3502348.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3502348</wfw:commentRss><description>&lt;p&gt;This question should probably be in an mysql forum, but since this is the place where I seek my wizdom I will put it here. &lt;img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif" alt="Smile" title="Smile" border="0" /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The problem is that I can&amp;#39;t get rows to be deleted through a foreign key constraint. &lt;/p&gt;&lt;p&gt;I have a table &amp;quot;Team&amp;quot; and another one &amp;quot;Group&amp;quot;. Team contains GroupId and I do like this&lt;br /&gt;&lt;/p&gt;&lt;p&gt;ALTER TABLE `Team`&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADD CONSTRAINT `fk_Team_Group` FOREIGN KEY (`GroupId`) REFERENCES `Group`(`Id`)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON DELETE CASCADE&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON UPDATE CASCADE&lt;/p&gt;&lt;p&gt;But later when I go Delete from Group the rows in Team are still there. &lt;/p&gt;&lt;p&gt;I&amp;#39;m I doing something wrong? Probably. But what? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>What is the difference between "= ANY "  &amp; "IN"</title><link>http://forums.asp.net/thread/3514217.aspx</link><pubDate>Mon, 16 Nov 2009 00:59:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3514217</guid><dc:creator>Boddam</dc:creator><author>Boddam</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3514217.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3514217</wfw:commentRss><description>&lt;pre&gt;I have used IN quite often but now I came across =ANY and im wondering if there is any difference between them two &lt;br /&gt;and if either one shall be preferred? I tried a search in Google but it&amp;#39;s darn tough with keywords =,IN,ANY &lt;img src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif" alt="Tongue out" title="Tongue out" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT * FROM t1 WHERE column1 IN (SELECT column1 FROM t2)&lt;br /&gt;&lt;br /&gt;SELECT * FROM t1 WHERE column1 = ANY (SELECT column1 FROM t2)&lt;/pre&gt;</description></item><item><title>Query problem</title><link>http://forums.asp.net/thread/3511431.aspx</link><pubDate>Fri, 13 Nov 2009 16:59:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3511431</guid><dc:creator>Boddam</dc:creator><author>Boddam</author><slash:comments>5</slash:comments><comments>http://forums.asp.net/thread/3511431.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3511431</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have a query like the one below which is working fine. But now I would like to add some specific rows from table1. How do I do that in a proper way?&lt;/p&gt;&lt;p&gt;My original query:&lt;br /&gt;SELECT a.* FROM table1 a INNER JOIN table2 b ON a.itemID=b.itemID&lt;/p&gt;&lt;p&gt;In addition I would now also like to include these rows into the selection&lt;br /&gt;SELECT * FROM table1 WHERE somecolumn=&amp;#39;111&amp;#39;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>update</title><link>http://forums.asp.net/thread/3512383.aspx</link><pubDate>Sat, 14 Nov 2009 07:16:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3512383</guid><dc:creator>archanaprasad</dc:creator><author>archanaprasad</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3512383.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3512383</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;
hi all,

&lt;/p&gt;&lt;p&gt;when we enter id in textbox the second page will display the user details of that id


&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt; webapplication
my database is mysql&lt;/p&gt;</description></item><item><title>JOIN same Table, different Table, different Databases??</title><link>http://forums.asp.net/thread/3510584.aspx</link><pubDate>Fri, 13 Nov 2009 09:39:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3510584</guid><dc:creator>Boddam</dc:creator><author>Boddam</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3510584.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3510584</wfw:commentRss><description>&lt;p&gt;I have a table where two of the columns are named &amp;quot;ItemA&amp;quot; and &amp;quot;ItemB&amp;quot;. Both columns consist of numeric itemnumbers such as 1,22,55,195 etc. I often cobine these coumns with some form of JOIN or UNION which I have a feeling is very ineffective from a performance point of view, joining columns from the same table. Anyhow, it makes it hard to work with so I want to take ItemB out of that table.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;So, my questions is: Is it better to put ItemB in a different table and do the JOIN/UNION between the tables? Or is it even faster to put ItemA and ItemB in different tables?&lt;/p&gt;&lt;p&gt;Both ItemA and ItemB will be quite large.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Newbie confused MySQL and SQL</title><link>http://forums.asp.net/thread/3508486.aspx</link><pubDate>Thu, 12 Nov 2009 10:57:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3508486</guid><dc:creator>Jasonstores</dc:creator><author>Jasonstores</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3508486.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3508486</wfw:commentRss><description>&lt;p&gt;Im a little confused, do i need to run mysql and sql?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I seem to have database problems and i dont remember seeing mySQL and now i have it. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;My connection string is set for the SQL Database, yet in plesk under databases i have mysql data base that has (This resource is used by the installed site application), i cant seem to delete it or change back to the original database.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is my stack trace.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Stack Trace:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;

            
               
                  
&lt;table bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td&gt;
                      &lt;code&gt;&lt;/code&gt;
&lt;pre&gt;[SqlException (0x80131904): SELECT permission denied on object &amp;#39;BannerCodes&amp;#39;, database &amp;#39;friendsdatingfriends&amp;#39;, schema &amp;#39;dbo&amp;#39;.]&lt;br /&gt;   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1950890&lt;br /&gt;   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846875&lt;br /&gt;   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194&lt;br /&gt;   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392&lt;br /&gt;   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +33&lt;br /&gt;   System.Data.SqlClient.SqlDataReader.get_MetaData() +83&lt;br /&gt;   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297&lt;br /&gt;   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954&lt;br /&gt;   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162&lt;br /&gt;   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32&lt;br /&gt;   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141&lt;br /&gt;   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12&lt;br /&gt;   System.Data.Common.DbCommand.ExecuteReader() +12&lt;br /&gt;   System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) +975&lt;br /&gt;   System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) +113&lt;br /&gt;   System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +344&lt;br /&gt;   System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable&amp;lt;T&amp;gt;.GetEnumerator() +35&lt;br /&gt;   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +247&lt;br /&gt;   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +81&lt;br /&gt;   AspNetDating.Classes.BannerCode.Fetch(Nullable`1 id, Nullable`1 position, Nullable`1 getDefault, eSortColumn sortColumn) in C:\Projects\AspNetDating65AjaxChat\Classes\BannerCodes.cs:191&lt;br /&gt;   AspNetDating.Classes.BannerCode.Fetch(ePosition position, eSortColumn sortColumn) in C:\Projects\AspNetDating65AjaxChat\Classes\BannerCodes.cs:147&lt;br /&gt;   AspNetDating.Components.BannerView.OnPreRender(EventArgs e) in C:\Projects\AspNetDating65AjaxChat\Components\BannerView.cs:78&lt;br /&gt;   System.Web.UI.Control.PreRenderRecursiveInternal() +80&lt;br /&gt;   System.Web.UI.Control.PreRenderRecursiveInternal() +171&lt;br /&gt;   System.Web.UI.Control.PreRenderRecursiveInternal() +171&lt;br /&gt;   System.Web.UI.Control.PreRenderRecursiveInternal() +171&lt;br /&gt;   System.Web.UI.Control.PreRenderRecursiveInternal() +171&lt;br /&gt;   System.Web.UI.Control.PreRenderRecursiveInternal() +171&lt;br /&gt;   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842&lt;br /&gt;&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;</description></item><item><title>ASP.NET Membership security MySQL vs SQL Server</title><link>http://forums.asp.net/thread/3507041.aspx</link><pubDate>Wed, 11 Nov 2009 17:07:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3507041</guid><dc:creator>bbcompent1</dc:creator><author>bbcompent1</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3507041.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3507041</wfw:commentRss><description>&lt;p style="font-size:11px;"&gt;This is kind of convoluted but I&amp;#39;m going to try to explain this as best I can.&lt;/p&gt;
&lt;p style="font-size:11px;"&gt;I am using ASP.NET role/membership to secure my web application. The login information is held in a SQL Server. The customer information is held in a MySQL Server. The quirky thing I&amp;#39;m dealing with is how to get the two database systems to associate the newly created user (SQL Server) with the customer profile (MySQL Server).&lt;/p&gt;
&lt;p style="font-size:11px;"&gt;One idea I had was to use MySQL for the role/membership information but that did not go down so well. I simply could not get the application wizard to recognize the MySQL database.&lt;/p&gt;
&lt;p style="font-size:11px;"&gt;If anyone here knows how to get a remote MySQL Database to be the membership and role data source, I&amp;#39;m certainly interested.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Connecting to mysql localhost</title><link>http://forums.asp.net/thread/3446705.aspx</link><pubDate>Thu, 08 Oct 2009 01:39:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3446705</guid><dc:creator>new coder</dc:creator><author>new coder</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/3446705.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=3446705</wfw:commentRss><description>&lt;p&gt;I just used part 1 and part 2 of this tutorial and I did all the installation/configuration, but when I try to run my page, I get the following error:&lt;/p&gt;&lt;p&gt;I cannot find any resolution, anyone? thanks.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;i&gt;&lt;i&gt;A network-related or instance-specific error occurred
while establishing a connection to SQL Server. The server was not found
or was not accessible. Verify that the instance name is correct and
that SQL Server is configured to allow remote connections. (provider:
Named Pipes Provider, error: 40 - Could not open a connection to SQL
Server)&lt;/i&gt;&lt;/i&gt;&lt;/h2&gt;&lt;p&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;table&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&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;lt;td&amp;gt;Type of Property&amp;lt;/td&amp;gt;&lt;br /&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;lt;td&amp;gt;&amp;lt;asp:DropDownList runat=&amp;quot;server&amp;quot; ID=&amp;quot;DDLPropertyType&amp;quot; DataSourceID=&amp;quot;ODSPropertyType&amp;quot;&amp;gt;&amp;lt;/asp:DropDownList&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/table&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ObjectDataSource runat=&amp;quot;server&amp;quot; ID=&amp;quot;ODSPropertyType&amp;quot; TypeName=&amp;quot;DataAccess.DataReader&amp;quot; SelectMethod=&amp;quot;GetPropertyTypes&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:ObjectDataSource&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;/p&gt;&lt;p&gt;namespace DataAccess&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class DataReader&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;&lt;p&gt;public static DataSet GetPropertyTypes()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string connectionString = &amp;quot;server=localhost; user id=Developer; password=mypassword; database=mydatabase; pooling=false;&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlConnection sqlConnection = new SqlConnection(connectionString);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string queryString = &amp;quot;select * From propertytypes order by propertytypedescription&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlDataAdapter dataAdapter = new SqlDataAdapter(queryString, sqlConnection);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataSet dsPropertyTypes = new DataSet();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataAdapter.Fill(dsPropertyTypes);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return dsPropertyTypes;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/i&gt;&lt;/p&gt;</description></item></channel></rss>