You have to use the connection component to achieve that, TSQLQuery itself cannot execute multiple statements. TSQL3Connection for example has a method called ExecSQL that can. That said, all SQL statements of TSQLQuery are in the end processed by the corresponding TSQLConnection anyway.