Statement Failed.
a USE database statement is not allowed in a
procedure, function or trigger.
It looks like instead of being connected with the
database in the dropdown as the initial catalog, it's
placing a use statement before each query to make it
use the database selected.