I’ve gotten in the habit of always specifying the db connection when using scripting, even if the default is specified in the project properties.
- It avoids confusion as to that connection you’re using
- It works regardless of the scope where the script is run. (Designer / Client / Gateway)