General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL 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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 23rd, 2004, 05:33 AM
Milkshake Milkshake is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 3 Milkshake User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question my_conn.open error

Hi, I'm trying to connect to a MySQL database using ASP however I keep getting an error message:

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'open'
index.asp, line 20

It's my first day trying to get this implemented and I've search around the net for answers and haven't found anything. Appology in advance if this has been answered a million times already but I'm stumpt on how to fix this.

the code is as follows, I've remove the database query stuff to save space,
<%
Dim my_conn, strSQL

Set my_conn = createobject("ADODB.Connection")

my_conn.open = "DRIVER={MySQL ODBC 3.51 Driver};"_
& "SERVER=localhost;"_
& "DATABASE=testdb;"_
& "UID=root;PWD=; OPTION=35;"

XYZ etc...............

my_conn.close ' Close database connection
Set my_conn = nothing 'obj variable released
%>


of course my_conn.open = "DRIVER={MySQL ODBC 3.51 Driver};"_ is line 20 where the problem is.

I've got the MyODBC driver installed, I can see it under the User DSN in ODBC Data Source Admin, although I was trying to create a DSN less connection, keep in mind it's my first day with all this, so I could be barking up the wrong tree, but I don't think I far off?!

Any help or pointers would be much appreciated

Many thanks

p.s.
I'm running win98, PWS(don't laugh), mysql 4.0.18, MySQL ODBC 3.51. If that helps.



Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > my_conn.open error


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 1 hosted by Hostway