When you use pass-through SQL, by default you will be working in the default database for the current user. To switch to another database, execute the USE statement within your pass-through SQL code. You must use the SQL_Execute() function to execute the USE statement separately to switch to another database. Then you can execute additional SQL statements. Refer to the example for the SQL_Execute() function to see how to switch to a specific database.