tags:

views:

59

answers:

1

Will the isSelect-method of QSqlQuery return true when a stored procedure containing a SELECT-statment is executed on sqlserver?

A: 

The documentation states that isSelect: "Returns true if the current query is a SELECT statement; otherwise returns false"

During my testing I found that it also returns true for an EXEC statement on sqlserver if there is a result-set to be fetched.

Mathias