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
Solved

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

Posted on 2012-03-29
2
245 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
2 Comments
 
LVL 17

Accepted Solution

by:
andrewssd3 earned 100 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 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