We help IT Professionals succeed at work.
Get Started

MySql INSERT, UPDATE AND DELETE ineffective from ASP development machine

Zipbang asked
Last Modified: 2012-06-21
This has to be an easy fix, but I have searched high and low and find anything but an answer:

I have an ASP.NET site setup that is successfully querying records over our intranet via the SELECT command.

I am working from another machine besides the MySQL server machine.  Could this be a rights issue?  

I am just starting to add and edit records using INSERT and UPDATE, the commands execute, but there are no results in the tables.  I try the same command (in the console) on the server hosting the MySQL database and the command works fine.

here is what I have in my .aspx.vb code

Dim sql As String
Dim conStr As String = "Driver={MySQL ODBC 5.1 Driver};server={server.domain.com};uid=root;pwd=password;database=database;port=3306"
Dim MyConn As New OdbcConnection(conStr)
sql = "UPDATE table SET notes ='testing' WHERE idprojectid='169'"
Dim cmd As New OdbcDataAdapter(sql, MyConn)

Open in new window

If I do the same thing above with a SELECT command configured to read data, it will work.

Since the UPDATE and INSERT seem to work on the server machine in the console, I am thinking it is an access rights issue when doing this from a web page?

thank  you
Watch Question
This problem has been solved!
Unlock 2 Answers and 4 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE