Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to treat fields name of  table as a clletion or object?

Posted on 2012-03-29
2
Medium Priority
?
251 Views
Last Modified: 2012-06-27
Hello,

My friend is trying to read data from a MySQL table using VBScript and wondering if instead of typing each field of the table in his code one by one could use an object (like dealing with collection) and read all the field of a table and read them.

Is this possible in VBScript?

Thanks,
Ak
0
Comment
Question by:akohan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
andrewssd3 earned 400 total points
ID: 37784339
I have not done this, but I believe you can connect to MySQL using ADODB (see for example this).  Then once you read your data into a normal Recordset, you have the Fields collection and can do all the usual Recordset stuff.
0
 

Author Closing Comment

by:akohan
ID: 37785221
Thanks.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question