When trying to execute some reports in Strategy, error "SQL Generation CompleteIndex out of range" and "Timeout expired" may received:

Same error can be found in the DSSError.log:
2010-12-07 14:49:05.755-06:00 (SQL Generation CompleteIndex out of rangeIndex out of rangeQueryEngine encountered error: Execute Query failed.Error type: Odbc error. Odbc operation attempted: SQLExecDirect. Timeout expired.
One possible cause is that the Strategy Intelligence Server using a cached database connection that was already dropped by the RDBMS.
Delete cached Database connection. In addition, change the settings for the "Connection lifetime" and the "Connection idle time out". Follow the steps below to perform the mentioned changes:
Refer to Knowledge Base document below for additional information about connection settings:
KB5598: What are the "Connection lifetime" and "Connection Idle Timeout" options under the Database Connection Caching section in MicroStrategy Intelligence Server?