Using the odbct tool for ODBC problems

To help you diagnose ODBC connectivity problems, the odbct tool verifies that your system configuration is by attempting to make a simple connection to the target.

NoteBe sure to run the odbct tool in the same environment in which you plan to use DirectConnect Option for ODBC targets by executing the DC_SYBASE.bat.

The odbct tool has three parameters: a data source name (DSN), user ID, and password. The following example shows a connection to the dcmssql DSN using the user ID ”joe” and password “joe21”.

odbct <DSN> <USERID> <PASSWORD>
odbct dcmssql joe joe21
> Would you also like the output saved to a file? (YN) : y         Attempting Connection
------------------------------------------------------> Allocating Environment> Allocating Connection> Attempting Connection		DSN 			:dcmssql
		USER    		: joe
		PASSWORD	: joe21

> CONNECTION SUCCEEDED> Allocating Statement> Connection succeeded, would you like to procede with  datasource and datatype reporting? (YN): n            Connection Cleanup
------------------------------------------------------> Free Statement> Attempting Disconnection   + Disconnection succeeded> Free Connection> Free Environmentbelford [ 23 ]