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

    Application database independient.

    Exist a technology that allow me develop an application database independient.
    I mean is possible that one aplication can work with Access database (local) and
    this will be able to work with SQL Server in necesary case.

    Thanks in advanced.

    GMena


  2. #2
    Join Date
    Apr 1999
    Location
    New Zealand
    Posts
    8

    Re: Application database independient.

    ODBC sounds like the one for you.

    Investigate classes CDatabase, CRecordset, etc. in the MFC documentation.

    You should be able to make your application database independent by utilizing this technology.

    Hope this helps.


  3. #3
    Join Date
    Jul 1999
    Location
    Lodz, Poland
    Posts
    26

    Re: Application database independient.

    You may try OLE DB. This is newer technology, but if you find any problems it may be more difficult to solve them.


  4. #4
    Join Date
    May 1999
    Location
    Slovenia (currently: Germany)
    Posts
    249

    Re: Application database independient.

    NO.

    Unless you are prepared to go with the smallest common denominator. MS SQL, ORACLE and ACCESS all use different SQL syntax, Access does not support triggers and stored procedures,...

    On the other side if all you need are some queries (though even designing a single table can be a problem: how do you create primary key - sequence in Oracle, identity in MS SQL and autonumber in Access...) try using ODBC.

    The way to access odbc is either via CRecordset or via OLE DB ODBC provider...All is the same in essence...

    ---------------------------------------------
    Tomaz Stih, B.Sc.CS [email protected]
    Ob sotoccju 10 Nameco Group
    SI-1000 Ljubljana http://www.nameco.com
    Europe



  5. #5
    Join Date
    Jul 1999
    Posts
    97

    Re: Application database independient.

    You can use ADO. This will definitely help you.


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