Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Using ADO in VC++

Using ADO in VC++

Scheduled Pinned Locked Moved Database
c++databasesql-serversysadminhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jackson86
    wrote on last edited by
    #1

    Hello I have a problem with using ADO in Visual C++. I'm need to get tables names of database by using types from ADO type library. I found one method: _RecordsetPtr rs_table_names = ado_conn->Execute(L"SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES", NULL, -1L); But there is a problem. This method allows me to get tables names only of SQL server, but with other database formats (MS Access, TXT files, Excel) it doesn’t work. Thanks in advance.

    I 1 Reply Last reply
    0
    • J Jackson86

      Hello I have a problem with using ADO in Visual C++. I'm need to get tables names of database by using types from ADO type library. I found one method: _RecordsetPtr rs_table_names = ado_conn->Execute(L"SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES", NULL, -1L); But there is a problem. This method allows me to get tables names only of SQL server, but with other database formats (MS Access, TXT files, Excel) it doesn’t work. Thanks in advance.

      I Offline
      I Offline
      Ilya Verbitskiy
      wrote on last edited by
      #2

      It looks like that Jet provider doesn't provide access to INFORMATION_SCHEMA. I found discussion about such problems. May be it'll help you.

      J 1 Reply Last reply
      0
      • I Ilya Verbitskiy

        It looks like that Jet provider doesn't provide access to INFORMATION_SCHEMA. I found discussion about such problems. May be it'll help you.

        J Offline
        J Offline
        Jackson86
        wrote on last edited by
        #3

        2Ilya: Thank you for link (Спасибо за ссылочку!). I nave another question: how can I get field data format string. When I used DAO, I got this string by DAOProperty::GetValue call. For example, this string looks like "General Number","General Date","Long Date" or something like "#,##0.00."p.";=#,##0.00"p."".

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups