Visual Basic Development Bookmark and Share   
 Home > Visual Basic General > Detect ODBC driver/connector is installed
 

Detect ODBC driver/connector is installed

Hi,

I currently connect to a MySQL database using the ODBC MySQL 5.1 Connector, how would I be able to detect if the driver is installed before a connection attempt?

Thank you for any assistance

Kind Regards,
Carl
OuTa-SyNc  Tuesday, November 24, 2009 10:25 PM

Hi Carl,

Welcometo MSDN forums!

How would I be able to detect if the ODBC MySQL 5.1 driver is installed before a connection attempt?
->
You can check if the ODBC key value existsin Registry like this:

If My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ODBC\ODBC Drivers", "TestValue", Nothing) Is Nothing Then

MessageBox.Show("Value does not exist")

Else

MessageBox.Show("Value exists")

End If


FAQ/Instruction/Samples: How do I check/read/write the Registry in VB.NET
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/255841ae-7a18-47dd-913f-69222b068fe4


Best regards,
Martin Xie


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Martin Xie - MSFT  22 hours 41 minutes ago
Hi,

I currently connect to a MySQL database using the ODBC MySQL 5.1 Connector, how would I be able to detect if the driver is installed before a connection attempt?

Thank you for any assistance

Kind Regards,
Carl

try here please:

http://www.google.co.uk/search?hl=en&source=hp&q=Detect+ODBC+driver%2Fconnector+is+installed+vb.net&meta=&rlz=1R2ADRA_enGB350&aq=f&oq=
Don't judge me, just Upgrade me. Thanks!
Malange  Tuesday, November 24, 2009 11:08 PM

Thank you but that was the first thing I tried, I have searched high and low and the above doesn't return any answers.

OuTa-SyNc  Wednesday, November 25, 2009 7:21 PM

Thank you but that was the first thing I tried, I have searched high and low and the above doesn't return any answers.


dig here again:

http://social.msdn.microsoft.com/Search/en-US?query=Detect%20ODBC%20driver&ac=8
Don't judge me, just Upgrade me. Thanks!
Malange  Thursday, November 26, 2009 6:53 PM

Hi Carl,

Welcometo MSDN forums!

How would I be able to detect if the ODBC MySQL 5.1 driver is installed before a connection attempt?
->
You can check if the ODBC key value existsin Registry like this:

If My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ODBC\ODBC Drivers", "TestValue", Nothing) Is Nothing Then

MessageBox.Show("Value does not exist")

Else

MessageBox.Show("Value exists")

End If


FAQ/Instruction/Samples: How do I check/read/write the Registry in VB.NET
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/255841ae-7a18-47dd-913f-69222b068fe4


Best regards,
Martin Xie


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Martin Xie - MSFT  22 hours 41 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Form wait
• MS VB 5.0 Step-by-Step Practice Files - where can I get them?
• On line help system
• Creating a Usercontrol
• MP3
• looking for examples of good user interfaces
• ListView control
• Generate INSERT, UPDATE, and DELETE statemenet
• How I restart Application in mobile
• Cerating Web forms in vb express 2005