CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    10

    How to get tables names from mdb database using ADO

    Does anyone know how to get the tables names from
    a mdb database using ADO (at runtime).

    I am using visual c++ 6 sp3

    Thank you

    Oscar


  2. #2
    Join Date
    May 1999
    Posts
    17

    Re: How to get tables names from mdb database using ADO

    From memory it goes something like this


    // Assuming ADO 1.5 or greater
    IADOConnection conn

    conn->OpenSchema (adSchemaTables, nullVariant, nullVariant, &pIADORecordset)



    I can't remember the exact usage of the second and third arguments, but they are usually set to null variants (or maybe error) for this type of query.

    Hope this helps somewhat.

    Regards,
    Peter



  3. #3
    Join Date
    Apr 1999
    Posts
    10

    Re: How to get tables names from mdb database using ADO

    Thank you very much!

    It works great!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured