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
sql('DROP FUNCTION IF EXISTS _fsopen(bytea)')sql('DROP FUNCTION IF EXISTS fspath(bigint, text, text)')