assuming the query succeeds you can call fbsql _ num _ rows to find out how many rows were returned for a select statment or fbsql _ affected _ rows to find out how many rows were affected by a delete insert replace or update statement 