Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 19th, 2003, 12:04 PM
computer's Avatar
computer computer is offline
echo $usertitle['computer'];
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2003
Location: UK
Posts: 6,705 computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 4 Weeks 18 h 36 m 39 sec
Reputation Power: 419
Send a message via ICQ to computer
MySql

How would I connect and query a MySql database
(and also do UPDATE and INSERT) from a VB 6.0 program, also how do I get it to check to see if I'm connected (to the internet) before it connects to the database?

Reply With Quote
  #2  
Old March 19th, 2003, 05:43 PM
GeorgeF GeorgeF is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 23 GeorgeF User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try,
http://www.mysql.com/downloads/api-myodbc-3.51.html

http://www.mysql.com/products/myodb...#MyODBC_With_VB

I have never done it so please post your results.

As an additonal note, if you get the activestate perl dev kit ($200, free 1m eval) you can write a dll that VB can use. I have written a perl dll and accessed it with VB. It took about 8-12 hrs (I am not particularly experienced with VB in genral, dll's in particular) for me to get the hang of modifiying perl to run in VB, get the Package&Delployment Wizard to work, ect. For $200 this might be the path of least resistance.

Last edited by GeorgeF : March 20th, 2003 at 04:45 PM.

Reply With Quote
  #3  
Old March 20th, 2003, 03:00 PM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed God (5000 - 5499 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 5,163 Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level)Onslaught User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 6 Days 1 h 34 m 20 sec
Reputation Power: 791
you can also talk to tewl about this. he just created a vb app that interacts with mysql.

<shakes finger at you sternly > should know better about your title.

Reply With Quote
  #4  
Old March 20th, 2003, 03:21 PM
computer's Avatar
computer computer is offline
echo $usertitle['computer'];
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2003
Location: UK
Posts: 6,705 computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)computer User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 4 Weeks 18 h 36 m 39 sec
Reputation Power: 419
Send a message via ICQ to computer
sorry

Reply With Quote
  #5  
Old March 21st, 2003, 11:31 AM
iamtgo3 iamtgo3 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: USA
Posts: 313 iamtgo3 User rank is Sergeant (500 - 2000 Reputation Level)iamtgo3 User rank is Sergeant (500 - 2000 Reputation Level)iamtgo3 User rank is Sergeant (500 - 2000 Reputation Level)iamtgo3 User rank is Sergeant (500 - 2000 Reputation Level)iamtgo3 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 h 31 m 33 sec
Reputation Power: 17
These are not the best examples but here are a few I did in VB6

mySQL Examples

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > MySql

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap