hi again - solved my own prob - will leave it here for anyone with similar problem. all I had to do was put btrim around the password (like select btrim(password) as password ...) and it all came good. thanks Glenn > >