The DB_FinishSQL function removes the results of the SELECT statement and releases the system resource, that is, the specified statement handle, hstmnt. Note that DB_FinishSql is not strictly necessary in this example, because the DB_Disconnect function, which releases all statements for the connection, follows immediately.