Yeah, it is a pretty simple approach. I wrote and tested the SQL script in the MS SQL Server Studio for a particular table (or such), then saved it as a .sql file and replaced the table name with a "token" name, being replaced by the framework function.