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
ifnotrql('CWConstraintType X WHERE X name "RQLUniqueConstraint"',ask_confirm=False):rql('INSERT CWConstraintType X: X name "RQLUniqueConstraint"',ask_confirm=False)