Solved

SQL connection test

Posted on 2014-01-29
2
246 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

627 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