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. How to connect to a database

How to connect to a database

Scheduled Pinned Locked Moved Database
questiondatabasemysqlcomsysadmin
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.
  • V Offline
    V Offline
    Venet
    wrote on last edited by
    #1

    I have a net management application (coded in Win32 API) and need to have a database connectivity. Idea is that an agent would run on each computer on the network and collect information about it and send it to a central database (probably MySQL). What is the best way to send this info? I don't want to use COM, not very familiar with it and want to keep app as simple as possible. :) Thanks Regards, Venet. Donec eris felix, multos numerabis amicos.

    D 1 Reply Last reply
    0
    • V Venet

      I have a net management application (coded in Win32 API) and need to have a database connectivity. Idea is that an agent would run on each computer on the network and collect information about it and send it to a central database (probably MySQL). What is the best way to send this info? I don't want to use COM, not very familiar with it and want to keep app as simple as possible. :) Thanks Regards, Venet. Donec eris felix, multos numerabis amicos.

      D Offline
      D Offline
      DanielO
      wrote on last edited by
      #2

      hi, There are many ways, but first what kind of database you use? (Oracle or MS Access database) and what development envir. you are using? (VC++ 6.0 or VB6) DanielO

      V 1 Reply Last reply
      0
      • D DanielO

        hi, There are many ways, but first what kind of database you use? (Oracle or MS Access database) and what development envir. you are using? (VC++ 6.0 or VB6) DanielO

        V Offline
        V Offline
        Venet
        wrote on last edited by
        #3

        Thanks for your interest. I'm using VC++ 6.0. There is a MySQL database running of a Linux server, and I need to connect to that database, to provide information about each PC, so the net admin could run a simple query and see the state of the network and of course each machine as well. So what's the easiest way to connect to this database? Don't really want to use COM as this is quite time limited project. Thanks Regards, Venet. Donec eris felix, multos numerabis amicos.

        D 1 Reply Last reply
        0
        • V Venet

          Thanks for your interest. I'm using VC++ 6.0. There is a MySQL database running of a Linux server, and I need to connect to that database, to provide information about each PC, so the net admin could run a simple query and see the state of the network and of course each machine as well. So what's the easiest way to connect to this database? Don't really want to use COM as this is quite time limited project. Thanks Regards, Venet. Donec eris felix, multos numerabis amicos.

          D Offline
          D Offline
          DanielO
          wrote on last edited by
          #4

          hi, i suppose you can do like this... go windows, control panel, data sources obbc (via system/admin tools in W2K) tab system dns add new choose sql server... etc. in MFC 6.0 Add a new class, derived of CRecordSet, choose your new made sql server connection and pick your table hope it helps, DanielO

          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