In this article I discuss how to specify SQL Statements in QTP
You can manually specify the database connection string and the SQL statement. First insert a Database Checkpoint, as in: To specify SQL statements:
Mastering Unit Testing