Do you have the DBCommand UDF in your script, or do you call it before this part of the script runs?


Please copy the UDF into the code or into another file and then call the UDF before the script that wants it is run.


Download from here or one of the UDF Mirrors

http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=83050&page=11&view=collapsed&sb=3&o=all&fpart=1