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. General Programming
  3. C / C++ / MFC
  4. CDaodatabase

CDaodatabase

Scheduled Pinned Locked Moved C / C++ / MFC
questiondatabase
4 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    In my program, i m using CDaodatabase for database connectivity. i then use CDaorecordset to entry/modify data in the database. My question is:: I do not use DSN anywhere in my program. Does CDaodatabase handle DSN internally. Wat is the better implementation - using DSN or using CDaoDatabase implementation? and wat is the main diff between the two?

    V 1 Reply Last reply
    0
    • A Anonymous

      In my program, i m using CDaodatabase for database connectivity. i then use CDaorecordset to entry/modify data in the database. My question is:: I do not use DSN anywhere in my program. Does CDaodatabase handle DSN internally. Wat is the better implementation - using DSN or using CDaoDatabase implementation? and wat is the main diff between the two?

      V Offline
      V Offline
      vikram attiganal
      wrote on last edited by
      #2

      CDaoDatabase constructs a CDaoDatabase object. The path to the database will have to be provided and connection can be opened with Open() method.

      A 1 Reply Last reply
      0
      • V vikram attiganal

        CDaoDatabase constructs a CDaoDatabase object. The path to the database will have to be provided and connection can be opened with Open() method.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        can u point out the difference between connecting vis CDaodatabase and connecting via DSN?

        A 1 Reply Last reply
        0
        • A Anonymous

          can u point out the difference between connecting vis CDaodatabase and connecting via DSN?

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          DSN stands for Data Source Name. Data Source can be a database, spreadsheet, text file etc. We assign DSN to a data source so that irrespective of the data source details and location, we can use that data source; add, modify or delete records, just by knowing it's DSN. From the application use CDatabase class to connect to a data source. Where as in CDaodatabase, full path to the database needs to be provided to connect. If the path of the data source changes, if a DSN exists, then changing path in the settings is all that is needed. Code doesnt have to be changed.

          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