Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > VB with MySQL


Reply
 
Thread Tools Display Modes
  #1  
Old 01-26-2003, 02:26 PM
SilverTab
Guest
 
Posts: n/a
Default VB with MySQL


What would be the best way to access an online MySQL db from a VB app? Can I do it with ADO? (My program is already using ADO to access an Access DB...) I heard about MyODBC too, but would it worth using it since my program already use ADO?
(any place where I can find a sample connection string??)
Reply With Quote
  #2  
Old 01-26-2003, 02:46 PM
Thinker Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default

You use the OLEDB provider for ODBC data sources. This will use
myODBC. I am not aware of any other way using ADO.
__________________
Posting Guidelines
Reply With Quote
  #3  
Old 01-26-2003, 03:44 PM
SilverTab
Guest
 
Posts: n/a
Default

Ok but, would it be easier to manage the queries with PHP for example, then execute them with a WebBrowser object from VB? Or should I access to the MySQL DB directly with VB?
Reply With Quote
  #4  
Old 01-26-2003, 09:23 PM
Thinker Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default

If you can only access the database via HTTP, then forget VB/ADO.
You should do it with PHP on the server. VB/myODBC/ADO is only
going to work if you can connect direct to mySQL via the IP
address/domain name of the server.
__________________
Posting Guidelines
Reply With Quote
  #5  
Old 01-26-2003, 10:38 PM
SilverTab
Guest
 
Posts: n/a
Default

Ok I guess i'll have to ask my host about this one...
But if it turns out that I can access it, how would I found out the IP? (I guess my host would also fill me out on this one?) and where could I find connection string example??
Reply With Quote
  #6  
Old 01-27-2003, 01:11 AM
JimCamel's Avatar
JimCamel JimCamel is offline
Mostly Absent

* Expert *
 
Join Date: Jun 2002
Location: Christchurch, New Zealand
Posts: 2,006
Default

There's code here which allows you to access a mySQL database using the IP/DNS without using ADO/DAO or OBDC (or so they say).
__________________
Sometimes it happens feelings die, Whole years are lost in the blink of an eye
We once had it all but event conspired, Sometimes
Now that it's over, it is through, It gets me everytime I think of you
Sometimes It happens, feelings die, Sometimes
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->