The odbcping utility tests the integrity of an ODBC data source and the ability of the client to connect to a server.
odbcping
[/?] |
[
{
-Sserver_name[\instance_name]
| -Ddata_source
}
[-Ulogin_id]
[-Ppassword]
]
If the connection is successful, odbcping displays the version of the SQL Server ODBC driver and the version of the instance of SQL Server to which it connected.
If the connection attempt fails, odbcping displays the error messages it receives from the SQL Server ODBC driver.
The odbcping utility is not installed by SQL Server 2000 Setup. The utility can be found in the x:\x86\Binn directory on the SQL Server 2000 compact disc.
odbcping /DMyDSN /Usa /PsaPassWord
odbcping /SMyServer /Usa /PsaPassWord