Nice little utility – it will be helpful
I have a few databases with – (dash) in the name and the query quit in an error – I added [ ] around the 2 database name references and everything works.
N'USE ?change toN'USE [?]
LogInfo(?)change to LogInfo([?])