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

    Opening ODBC with CDaoDatabase::open()

    I created a System DSN called MyDB and I want to connect to it using

    CDaoDatabase db;
    db.Open("", FALSE, FALSE, "ODBC;DSN=MyDB);

    I get the message: "You cannot use ODBC to import from, export to, or link am external Microsoft Jet or ISAM database table to your database."

    I've searched a lot of forums and can't seem to find a correct way to make this work.

    Thank you for any hint on this...

    FN

  2. #2
    Join Date
    May 2002
    Location
    France, Toulouse
    Posts
    156

    Re: Opening ODBC with CDaoDatabase::open()

    I have the same problem?

    when I use CDatabase its OK but when I use CDaoDatabase I have the error message?


    Thank you

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    Re: Opening ODBC with CDaoDatabase::open()

    DAO is intended to work with Microsoft Access/Jet database only.
    Best regards,
    Igor

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Opening ODBC with CDaoDatabase::open()

    I am sorry, Igor, but it is NOT correct!
    DAO works pretty good with some other DB, such as:
    • Microsoft FoxPro®, versions 2.0, 2.5, and 2.6 ;
    • dBASE III®, dBASE IV®, and dBASE 5.0®;
    • Paradox™, versions 3.x, 4.x, and 5.x;
    • ODBC data sources, including but not limited to Microsoft SQL Server, SYBASE® SQL Server, and ORACLE® Server;
    • Microsoft Excel version 3.0, 4.0, 5.0, and 7.0 worksheets;
    • Lotus® WKS, WK1, WK3, WK4 spreadsheets;
    • Text files;
    • ...

    See DAO External: Working with External Data Sources
    Victor Nijegorodov

  5. #5
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    Re: Opening ODBC with CDaoDatabase::open()

    Really? Sorry for my ignorance.
    Best regards,
    Igor

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