MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 14th, 2004, 02:33 PM
cgnovelo cgnovelo is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 14 cgnovelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry Problem with ASP and mySQL

Hello,
I have successfully installed mySQL server and myODBC to use with my ASP application, but I can't find the way to properly configure it to return the "RecordCount" property from a recordset... I read the myODBC manual and it says a flag "return matching rows" should be set, which I think it's done cause the checkbox is selected in the ODBC part of the control panel. When connecting to the DB from my ASP file I use a connection string like: "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=db;UID=uid;PWD=; OPTION=3". I believe the OPTION=3 parameter should do the trick but it's not working. Everything else does, like inserts, etc. Is there something I need to configure elsewhere?
Thanks in advance.

Reply With Quote
  #2  
Old March 14th, 2004, 10:40 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Try setting the .cursorlocation of the recordset to 3.
e.g.
Code:
rs.open 
rs.cursorlocation = 3
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old March 15th, 2004, 02:14 AM
cgnovelo cgnovelo is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 14 cgnovelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, I'll try. It's driving me nuts because my app was originally written to use SQL Server and some things don't work with mySQL, which is running on the remote server... But what is weirder is that the remote mySQL does return the recordcount property without modifying the code >:-/

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Problem with ASP and mySQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT