Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. SQL Server & Android
Forum Update on Monday, May 27th 2025

SQL Server & Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 1.3k Views
  • 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.
  • S Offline
    S Offline
    ShadyAshraf
    wrote on 7 Oct 2018, 20:56 last edited by
    #1

    I want to connect my android app to an azure SQL server, I'm kinda new to this so I have no clue how to do it. I did it for a windows application but there was plenty on reference for that however when it comes to android I can't find sufficient documentation to help me. If anyone can give me a clue on how to create the connection that be more than enough, thanks in advance!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Oct 2018, 21:16 last edited by
      #2

      Hi,

      What driver are you using on Windows ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply 7 Oct 2018, 22:32
      0
      • S Offline
        S Offline
        ShadyAshraf
        wrote on 7 Oct 2018, 22:32 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • S SGaist
          7 Oct 2018, 21:16

          Hi,

          What driver are you using on Windows ?

          S Offline
          S Offline
          ShadyAshraf
          wrote on 7 Oct 2018, 22:32 last edited by
          #4

          @SGaist
          QODBC, but with android I tried JDBC

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 8 Oct 2018, 21:03 last edited by
            #5

            The thing is: it's not usual to connect directly from an Android device to a database system. It's usually done using a web service that provides the needed end points for your application and thus hides the details of the database used.

            You may have success cross-compiling the MySQL plugin using MariaDB and the PostgreSQL driver for Android however for ODBC, I am not aware of such an option.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            3
            • A Offline
              A Offline
              AndyS
              Moderators
              wrote on 9 Oct 2018, 08:25 last edited by
              #6

              Personally (and I have also done this in my own application) I would use a web service that does the communication to the database for you. This ultimately proves to be much easier to set up and the app stores can easily reject the usage of the SQL drivers being used already or at a later date.

              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              2

              1/6

              7 Oct 2018, 20:56

              • Login

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