I am a new VB programmer and I am conencting to mySQL server via DAO and mySQL ODBC connector. Is there direct way to retrieve the table and fields names? mySQL does not support the adSchemaColums property to give me the fields names in one pass. I saw a code where the schema for the fields is retrieved in a two way procedure. But i am getting reslts if i do TWO connections. One to get the table , and a second to get is fields:
Set someTables = someConnection.OpenSchema(adSchemaTables)
Set someFields = someConnection.OpenSchema(adSchemaColumns,Array(Empty, Empty, someTables("TABLE_NAME".Value,Empty))
AND THIS IS SLOW!! The driver re-eastablishes connection for every table I am asking fields.
Set someTables = someConnection.OpenSchema(adSchemaTables)
Set someFields = someConnection.OpenSchema(adSchemaColumns,Array(Empty, Empty, someTables("TABLE_NAME".Value,Empty))
AND THIS IS SLOW!! The driver re-eastablishes connection for every table I am asking fields.