MsSqlServer dialects reject custom SQL Server queries with limits

Description

When retrieving data from SQL Server using a custom SQL query, a NotSupportedException is thrown when the query does not start with SELECT or SELECT DISTINCT. This behaviour prevents the use of paging when using stored procedures. It also prevents the use common table expressions in custom SQL Server queries.

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created December 15, 2011 at 2:33 PM
Updated September 21, 2014 at 12:40 PM
Resolved September 30, 2012 at 8:29 PM
Who's Looking?