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. Wierd behavior on querie results, on diferents computers...

Wierd behavior on querie results, on diferents computers...

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 425 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.
  • K Offline
    K Offline
    k_cyero_ryu
    wrote on last edited by k_cyero_ryu
    #1

    Hi, i build a personal tool to help me in my job, i have being using it for almost a year with no issues, last month it start returning empty cells, from a DB query to a SQL server DB. tested on a diferent computer and it worked just fine, so just keep ussing the other computer intead, my first thought was a Windows update problem, i work with diferent computers so was not a big issue. now same problem on all the computers. try to build from scratch, no use. Look like is a ODBC driver problem, cuse in a koworker PC still works, diference is older ODBC driver version, but downgrade ODBC driver version dint fix it for me. anyone with an idea related to this issue?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Please provide a minimal, compilable version of your problem. How should we help when you don't post any code.
      The latest MSSQL ODBC driver has some problems - I would suggest downgrading it.

      https://github.com/MicrosoftDocs/sql-docs/blob/live/docs/connect/odbc/windows/release-notes-odbc-sql-server-windows.md

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      K 1 Reply Last reply
      4
      • Christian EhrlicherC Christian Ehrlicher

        Please provide a minimal, compilable version of your problem. How should we help when you don't post any code.
        The latest MSSQL ODBC driver has some problems - I would suggest downgrading it.

        https://github.com/MicrosoftDocs/sql-docs/blob/live/docs/connect/odbc/windows/release-notes-odbc-sql-server-windows.md

        K Offline
        K Offline
        k_cyero_ryu
        wrote on last edited by
        #3

        @Christian-Ehrlicher Sorry din't post any code ralated info, cuse the code has being working just fine for quite a while, most cases having similar problem the working solution was update ODBC driver, but yesterday saw that the tool was working on a diferent computer with older ODBC, so you just have give me the answer. Will test and update the post right after, thanks.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          k_cyero_ryu
          wrote on last edited by
          #4

          ok, i had problems doing the downgrade, sqlsrv32.dll dosnt have a DllUnregisterServer function, so cant just "regsvr32 /u- sqlsrv32.dll".

          So my current working solution was just to passed on the connection string.

          Like is was:
          FileName2 = "DRIVER={SQL SERVER};"
          "SERVER=SERVERNAME;"
          "DATABASE=DBNAME;"
          "UID=USER;"
          "PWD=PASSWORD;"
          "Trusted_Connection=NO";

          Working slution:
          FileName2 = "DRIVER={ODBC Driver 11 for SQL SERVER};"
          "SERVER=SERVERNAME;"
          "DATABASE=DBNAME;"
          "UID=USER;"
          "PWD=PASSWORD;"
          "Trusted_Connection=NO";

          Now all my queries are returning normal values instead of empty ones. Identified drivers giving me this problem, are SQL Server 10.00.19 and 10.00.22. Working ok on ODBC Driver 11 for SQL SERVER 2014.120.55.

          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