Great! Thank you very much that worked.
Suggestion, maybe see if something can be put into the DNN Event logs when YAF SQL scripts are run. After running this, checked the DNN event logs and Admin -> Maintenance -> Event log, and theres nothing listed in either. The later log, maybe I don't have something turned on to log this event, but maybe some kind of notification would be beneficial.
For example, some other YAF Admin (which doesn't have DNN event log access) runs a SQL script, a Portal Admin of the DNN site, which has access to can view the DNN event logs, can see what they did, etc.
Thanks again..