Have you been ODBCPing with SQL Server?

Barrie Sosinsky, Contributor

Although SQL Server doesn't install the ODBCPing utility by default, you can use this utility to determine if ODBC is functioning correctly. The program is in the x86binn directory of the SQL Server 2000 CD. To install this locally on your server, copy the utility to your <Drive>:Program Files\Microsoft SQL Server\mssqlbinn directory.

The syntax for the odbcping command is:

ODBCPING [-?] | {{-Sserver | -Ddatasource} [-Ulogin] [-Ppassword],


  • S is the server used in the connection;
  • D is the name of the data source;
  • U is the login ID; and
  • P is the password for that ID.

When you enter the command at the command prompt you should see a response similar to the following:

ODBC SQL Server Driver Version 2000.80.0100
SQL Server Version: Microsoft SQL Server 2000-8.00.100 (Intel x86)
<Date Time>
Copyright (c) 1988-2000 Microsoft Corporation

When you use a Data Source Name you access the preset configuration to a server that is specified in the ODBC Data Source application found in the Administrative Tools folder. ODBCPING cannot be used for a default SQL Server installation, as it doesn't work for integrated security connections.

    Requires Free Membership to View

Barrie Sosinsky is president of consulting company Sosinsky and Associates (Medfield MA). He has written extensively on a variety of computer topics. His company specializes in custom software (database and Web related), training and technical documentation.

This was first published in March 2005

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.