Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ASP / Database Access / October 2008



Tip: Looking for answers? Try searching our database.

ASP and MySQL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Risingfish - 12 Aug 2008 15:56 GMT
Hello,

We have an old app that we're having a problem with. We're using MySQL
through ODBC on in an old ASP application. We running into some odd
type mismatch errors are cause us fits and we just can't figure out
what's going on. The following SQL statement works for most people but
on a few it blows up with a type mismatch (this statement comes from a
customer that it's breaking on):

UPDATE Customer SET LastLoginIP = '<removed>', LoginCountSuccess = 55,
LoginCountFail = 2, DateLastLogin = now() WHERE CustomerID = 1146;

Looks normal to me... One of the guys mentioned that there are some
issues with using MySQL through ODBC, and I was wondering if anyone
might be able to help?

The MySQL database is located on a different server than the website
running this query fi that makes a difference, but again, it works for
most customers. Please let me know if any more information is needed
to help troubleshoot.

Thanks!
R
Risingfish - 12 Aug 2008 18:22 GMT
> Hello,
>
[quoted text clipped - 19 lines]
> Thanks!
> R

Before anyone tries to answer, I found the issue. Whoever wrote the
original code didn't clear the Err object so it was actually happening
well about this sql statement.
Ozkan Ozcan - 14 Oct 2008 14:40 GMT
Try this

SQL ="UPDATE Customer SET LastLoginIP = '<removed>', LoginCountSuccess = 55,
LoginCountFail = 2, DateLastLogin = '" & now() & "' WHERE CustomerID = 1146"

OR

SQL ="UPDATE Customer SET LastLoginIP = '<removed>', LoginCountSuccess = 55,
LoginCountFail = 2, DateLastLogin = CURDATE() WHERE CustomerID = 1146"

On 12.08.2008 17:56, in article
06983c3e-d78e-4644-84e4-eb3cdacadbcc@k36g2000pri.googlegroups.com,

> Hello,
>
[quoted text clipped - 19 lines]
> Thanks!
> R
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.