SQL Pad is a plugin for Royal TS I am currently developing that enables you to manage and connect to Microsoft SQL Server instances and execute queries against this instances.

The focus of this tool is to enable DBAs to debug problems on a SQL server quickly by providing lots of usefull debug queries and statements ready to use and allows you to use the output of a query as input to another query.

For example if one of the queries returns a row containing a column with a sql hanle you can simply use this value as an input parameter for the next query which is most likely a select * from fn_get_sql()

It has also capabilitues to execute a statement against all databases on an instance or against all tables in a database or for each row of a query