If you are having such issues, would suggest you open a support call if you haven't already.
As applicable, you may need to indicate if your concern is observed server side as one of:
1. a statement in the database server which is not stopping (i.e after an error or attempt to cancel)
2. an active result set which never closes
As noted in my first reply, database connections are pooled and automatically closed after an idle period.
When new queries are executed, an appropriate idle connection in the pool will be used before trying to create another one.
Should you believe that idle connections are not closing, and there is no active statement/resultset on that connection the DBA has seen for a period of tiem then support can help gather logs to review.
------------------------------
NIGEL CAMPBELL
------------------------------
Original Message:
Sent: Tue September 27, 2022 02:36 PM
From: Ali Azimi
Subject: SQL connection remains open after cancelling the report.
Hello, Nigel
Thank you for your response.
Yes! You are right,
But, some of our queries run complex calculations and sometimes take 7-8 minutes to complete.
5 or 6 of them are enough to crash my server.
Is there a way to manually call this automated cleaning process?
------------------------------
Ali Azimi
Original Message:
Sent: Tue September 27, 2022 02:13 PM
From: NIGEL CAMPBELL
Subject: SQL connection remains open after cancelling the report.
Database Connections are pooled and automatically closed after a period of idle activity.
------------------------------
NIGEL CAMPBELL
Original Message:
Sent: Tue September 27, 2022 11:45 AM
From: Ali Azimi
Subject: SQL connection remains open after cancelling the report.
I encountered a problem while creating and testing new reports in Cognos Analytics.
When report has a heavy query, a popup appears where users can choose a delivery method or cancel it.
Technically, the Cancel button should end the process and close all open connections to the SQL server, but in many cases, it does not, resulting in performance issues. Despite searching many pages, I couldn't find a solution.
Does anyone have an idea?
------------------------------
Ali Azimi
------------------------------
#CognosAnalyticswithWatson