10018 looks suspiciously like a Winsock error number. Perhaps the Sybase code just returns the system "errno" value in this instance? What does a non-Windows ISQL report? Craig Jackson Craig_Jackson at iacnet.com The Gale Group Cambridge, MA, USA