Solved

SQL connection test

Posted on 2014-01-29
2
243 Views
Last Modified: 2014-02-24
Here is what I am trying to do - -

I have an ODBC connection setup on some computers with a manual password entered.  The password changed recently and the connection should not be working but I see no difference in the performance of the program.

I would like to test the ODBC connection in its current state without entering  the correct username and password.  I know it should fail and if I enter the old password in the ODBC connection settings and then test the connection it does fail.  But I would like to just prove the current connection state is invalid without changing anything.

Everything I find points to me entering the username and password to test the connection.  I figured I would ask the community to see if their is any way I can do it without manually entering the data and just using the currently stored settings.
0
Comment
Question by:Sean Meyer
2 Comments
 
LVL 16

Assisted Solution

by:Surendra Nath
Surendra Nath earned 250 total points
ID: 39818937
ok, where you want to prove it as invalid

in a c# code,
in a rational robot vb script
in a powershell code...

Let us know where you are coding and we will let you know how you can prove it .
0
 
LVL 35

Accepted Solution

by:
David Todd earned 250 total points
ID: 39819438
Hi,

On the SQL 2000 media is a program called odbcping. To install this just copy the file from the media. You may need to rename the extension to .exe.

This is a perfect tool to exercise odbc dsn's.

HTH
  David
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question