Well after getting on the phone with the host, it appears the error was with them blocking the server IP address from writing to SQL.
No idea how or why this happened, but the problem is now fixed and the script is working as it should be.
Thanks all for the assistance with this issue, its appreciated
