**** If you use SQL Server Authentication TEXT TO ConnectionString NOSHOW PRETEXT 15 DRIVER={SQL Server Native Client 10.0};Database=YourDataBase;UID=username;PWD=password; ENDTEXT **** If you use Trusted connection TEXT TO ConnectionString NOSHOW PRETEXT 15 DRIVER={SQL Server Native Client 10.0};Database=YourDataBase;Trusted_Connection=yes; ENDTEXT lnHandler = SQLSTRINGCONNECT(ConnectionString) IF lnHandler < 0 AERROR(laError) MessageBox(laError[1,2]) ENDIFYou could force the ODBC to use some protocol with adding this to connection string: