SYMPTOM:
When executing a report against the SQL Server 2005 (or newer) database in Strategy Intelligence Server 9.4.x - 10.x, the following error can appear:
QueryEngine encountered error: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. The text data type cannot be selected as DISTINCT because it is not comparable.

"DISTINCT", is used in the report SQL because the ID form of an attribute needs to be a column that uniquely identifies each attribute element. The Text datatype was deprecated for Varchar(max) in the SQL Server 2005 release.
ACTION:
There are two options available to resolve this issue: