Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Remote Database Connection
Qt 6.11 is out! See what's new in the release blog

Remote Database Connection

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.5k 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.
  • B Offline
    B Offline
    beowulf
    wrote on last edited by
    #1

    I'm with a project, and this project with this way.

    At the company has some employees where each employee gets an application (client) that inserts, changes, deletes, data from the database which is in another location.

    On the server has an application (server) that receives commands from officers.

    Eg

    For example, the employee sends a command called.

    @getStaff@

    The server already recognizes this command, and the server already has a query that makes the query on the database and returns the data.

    But in return he sends an object from the database to the client manipulate that data, Instead of returning only the data

    Is this possible?

    I found two examples in Qt, a database and another called "Fortuner", which sends commands to the server, and the server returns a message.

    http://doc.qt.digia.com/latest/network-fortuneclient.html

    http://doc.qt.digia.com/qt/network-fortuneserver.html

    The difference is that instead of the server sending a message, it sends an object database.

    -- 0x00

    1 Reply Last reply
    0
    • mrdebugM Offline
      mrdebugM Offline
      mrdebug
      wrote on last edited by
      #2

      I think you have 2 ways for to do this. A first way: connecting directly to the database and use stored procedures.
      A second way (that I use often), write a http daemon to run in the server side that is connected to the database. The clients use http - xml requests to get information from the server.

      Need programmers to hire?
      www.labcsp.com
      www.denisgottardello.it
      GMT+1
      Skype: mrdebug

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved