Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
MySQL++ - Programming with the C++ API to MySQL
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Problem with MyOdbc 3.51.11 and MySql4.1.10 and VB .Net

Problem with MyOdbc 3.51.11 and MySql4.1.10 and VB .Net

2005-02-18       - By Jorge Nunes (GN/dpi)

 Back
Hi everyone!



I have a strange problem with MyOdbc 3.51.11, MySql 4.1.10 and VB .Net



Recently I moved to MySqlFront version 3.2 to be able to connect to
MySql 4.1.10 on my Windows XP notebook.

To connect successfully, I'd to install MyOdbc 3.51.11 instead of MyOdbc
3.51.06. This solution works like a charm but...... when I run a program
made in VB .Net I get strange errors when I try to make a query to the
database. In this situation the object get equal to Nothing, I explain
with some code:



     Dim reader As IDataReader



     For i=0 to 10000

           Dim qry As String = "SELECT * FROM table WHERE id=" & I & "
........."



                       reader = Me._dbCom.query(qry)



           While reader.Read()



           ... some code



                 If Not reader Is Nothing Then reader.Close()

           End While

     Next I



Note that object _dbCom hides that code needed to make the connection
bla bla bla...

The problem is that the "reader" becomes NOTHING randomly and the system
throws an exception (of course!).



This didn't occurred with versions of MyOdbc 3.51.06, MySql 4.0.xx and
the sabe VB code.



Is there anyone that already passed through this and found a solution?



Thank you and thanks to the guys that make MySql* a good piece of
software.



Jorge


Earn $52 per hosting referral at Lunarpages.