Nicholas,
Two things..
1) if you are using trusted connections you do not need to put UID and PWD into the connect string.
2) you seriously should change the sa password to something a bit more secure
>qhandle = SQLSTRINGCONNECT(;
> 'driver=SQL server;' + ;
> 'Server=(local);' +;
> 'database=master;' + ;
> 'uid=SA;' + ;
> 'pwd=SA;' + ;
> 'trusted_connection=YES')