|
-
Feb 2nd, 2006, 02:15 AM
#1
Thread Starter
Addicted Member
Send query to online mySQL Database
Hi, been searching the fourms for a good anwser but I didn't come up with anything...
Basically I need to send queries to an external mySQL database via VB6. My questions are:
- How do I connect to a mySQL database? Which controller or referance is best?
- How do I send queries to the database and store them in variables? (clean cut, each query should only return one value as a double)
Havn't done Vb in a while so giant newb anwsers would be helpful.
Thanks for any response.
Quis Custodiet Ipsos Custodes?
You don't have to be faster than the bear, you just have to be faster than the slowest person running from the bear.
-
Feb 2nd, 2006, 02:21 AM
#2
Re: Send query to online mySQL Database
welcome back, Illiad
use ado to connect to the database. search for ado in this forum. there are lots of examples for the connections and queries.
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Feb 2nd, 2006, 02:25 AM
#3
Frenzied Member
Re: Send query to online mySQL Database
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
-
Feb 2nd, 2006, 02:44 AM
#4
Thread Starter
Addicted Member
Re: Send query to online mySQL Database
Okay, searching ADO is get code samples like this.
VB Code:
Dim rsMyRecordSet As ADODB.Recordset
Dim sSQL As String
Set rsMyRecordSet = New ADODB.Recordset
sSQL = "SELECT field FROM table....etc"
rsMyRecordSet.Open sSQL, CurrentProject.Connection
I'm trying to decipher it piece by piece, sSQL seems to by the query I want to send and the last line apparently sends the query I'm assuming. Where am I supposed to input all the connection parapamters such as IP, login name, password, etc?
Moreover, how do I manipulate this record set object after I get the response?
Quis Custodiet Ipsos Custodes?
You don't have to be faster than the bear, you just have to be faster than the slowest person running from the bear.
-
Feb 2nd, 2006, 02:53 AM
#5
Re: Send query to online mySQL Database
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|