Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

run time error -2147467259 (80004005)  =  unspecified error vb6 & mySQL

Posted on 2004-10-13
15
Medium Priority
?
1,731 Views
Last Modified: 2008-01-09
Hi guys, I have an app. that uses vb6, mySQL & myODBC, I developed it using a computer with win2K OS and the app. was working fine, last week I had to format my hard drive then I installed Win-Xp Pro, I allready configured myODBC and I can see my database that is in a server, but when I try to run my app. the following error appear:

run time error -2147467259 (80004005)
unspecified error vb6 & mySQL

I think that I have to make an ADO reference in the vb project but I'm not sure which one, my code is:

'    Set conn = New ADODB.Connection
'
'    Set rsAccesos = New ADODB.Recordset
'
'    conn.CursorLocation = adUseClient
'    conn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _
'        & "SERVER=192.168.8.228;" _
'        & "DATABASE=scrc;" _
'        & "UID=test;" _
'        & "PWD=;" _
'        & "OPTION=" & 1 + 2 + 8 + 32 + 2048 + 16384
'
'    conn.Open

The app. stops in the last line "conn.Open"

Thank's guys
0
Comment
Question by:pander
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
15 Comments
 
LVL 7

Accepted Solution

by:
HoweverComma earned 1400 total points
ID: 12304209
That error sounds like you need to install the MySQL ODBC 3.51 DAO...
Most of the time a missing component causes a -2147467259 RTE

In the IDE you need to also go to Project-->References and select the MySQL driver.
The choice will be obvious just scroll down the list it should be the exact text in Driver = or something very similar
0
 
LVL 10

Expert Comment

by:anv
ID: 12305143
0
 

Author Comment

by:pander
ID: 12311707
Thank's However, I allready installed MyODBC 3.51 and I tested my connection to the data base and it connected succesfully

VISUAL BASIC FOR APPLICATION
VISUAL BASIC RUNTIME OBJECTS AND PROCEDURES
VISUAL BASIC OBJECTS AND PROCEDURES
OLE AUTOMATION
MICROSOFT ACTIVEX DATA OBJECTS 2.5 LIBRARY
MICROSOFT DAO 3.51 OBJECT LIBRARY
MICROSOFT DATA BINDING COLLECTION VB 6.0 (SP4)
MICROSOFT DATA FORMATTING OBJECT LIBRARY 6.0 (SP6)
MICROSOFT DATA REPORT DESIGNER 6.0 (SP4)
MICROSOFT CONNECTION DESIGNER INSTANCE 1.0
MICROSOFT REMOTE DATA OBJECT 2.0
MICROSOFT DATA ENVIRONMENT INSTANCE 1.0 (SP4)

Before I change my OS from Win2K to Win Xp Pro I made a backup then I restored it and I didn't do anything and the error still apear.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:pander
ID: 12311727
Sorry, the upercase lines are the references I have in my project.
0
 
LVL 7

Expert Comment

by:HoweverComma
ID: 12313900
I do not personally use MySQL but I do not see anything in you project references.

Do you have a system DSN set?
0
 

Author Comment

by:pander
ID: 12314045
Yes My DSN is "scrc"
0
 

Author Comment

by:pander
ID: 12314092
Look, what I have:

1 - The Data Base is scrc that is in a server
2 - MySQL Server & Client, MySQL Admin and MyODBC are allredy installed on my computer
3 - Also I allready installed SP6 on my Visual Basic 6

I Allredy configured MyODBC and my DSN is scrc then When I make the conection using MyODBC is succesfully.

0
 

Author Comment

by:pander
ID: 12341797
Thank's guys, I allready fix the problem, the solution was to reinstall MyODBC.
0
 

Expert Comment

by:modulo
ID: 12752498
PAQed with points refunded (350)

modulo
Community Support Moderator
0
 
LVL 7

Expert Comment

by:HoweverComma
ID: 12755086
What gives?????
0
 
LVL 7

Expert Comment

by:HoweverComma
ID: 12842356
Thanks modulo.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question