work around cursor.rowcount not returning anything useful before 1st fetch with mssql (closes #1910869)
use select count(*) from table to get the number of rows
rql('SET X name "BoundaryConstraint" ''WHERE X is CWConstraintType, X name "BoundConstraint"')