Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Solved How to solve the error of "connection 'MSSQL' is still in use, all queries will cease to work"?

    General and Desktop
    4
    10
    1654
    Loading More Posts
    • 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
      veera last edited by veera

      QSqlDatabasePrivate::removeDatabase: connection 'MSSQL' is still in use, all queries will cease to work.
      QSqlDatabasePrivate::addDatabase: duplicate connection name 'MSSQL', old connection removed.
      open DB

      K 1 Reply Last reply Reply Quote 0
      • K
        koahnig @veera last edited by

        @veera

        1. Please change the title to something more comprehensive and do not continue to post simpy error messages.
        2. Give a couple of details what you are actually trying to achieve.
        3. Possibly a short section of code may help to give others an understanding of your goal.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply Reply Quote 0
        • dheerendra
          dheerendra Qt Champions 2022 last edited by

          In addition to @koahnig said, looks like you are trying to open the DB connection from two places in your code. Hence getting into this issue.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply Reply Quote 3
          • V
            veera last edited by

            How to fix the errors please explain me.......

            1 Reply Last reply Reply Quote 0
            • E
              Eddy last edited by Eddy

              @veera

              If you show us the code where it goes wrong, then we could help you.

              Eddy

              Qt Certified Specialist
              www.edalsolutions.be

              1 Reply Last reply Reply Quote 0
              • V
                veera last edited by

                yes you are right .....i have fixed this error. i have opened the connection twice.....thanks @dheerendra ....

                1 Reply Last reply Reply Quote 0
                • dheerendra
                  dheerendra Qt Champions 2022 last edited by dheerendra

                  @veera "How to fix the errors please explain me......."

                  please note that people in this forum are giving you the solution based on the problem statement you explain. Based on your error message I suggested possible condition. Without you sharing the code no body can help you to fix the problem. Your response to my suggestion looked harsh to me. Be polite & people are helping here based on their interest.

                  Dheerendra
                  @Community Service
                  Certified Qt Specialist
                  http://www.pthinks.com

                  V 1 Reply Last reply Reply Quote 3
                  • V
                    veera @dheerendra last edited by

                    @dheerendra
                    I am really sorry for that....i am opening database connection in qt application as well as trying to open in QtRPT reporting tool also ... i have commented in database connection code in QtRPT tool....it works for me ...... I was making a report using QtRPT tool........

                    K 1 Reply Last reply Reply Quote 0
                    • K
                      koahnig @veera last edited by koahnig

                      @veera said in How to solve the error of "connection 'MSSQL' is still in use, all queries will cease to work"?:

                      QtRPT

                      Almost any answer within this forum may be crytal ball reading to your problems. As also @dheerendra iterated and others including myself have asked for some code samples showing were your problem is. QtRPT is not Qt and simply using Qt libraries as many other software and tools. You might be lucky and there is a user of QtRPT in this forum, but your chances are much better to address your questions in the QtRPT forum.

                      Vote the answer(s) that helped you to solve your issue(s)

                      1 Reply Last reply Reply Quote 1
                      • V
                        veera last edited by

                        yes it is a reporting design tool.....

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post