Solved

ODBC--connection to 'xxx' failed. (error #3151)

Posted on 1997-10-23
1
1,670 Views
Last Modified: 2008-03-06
ODBC--connection to 'xxx' failed. (error #3151)
0
Comment
Question by:wti
[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
1 Comment
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 1089022
Establishing a good connection involves many variables.  Here are a few places to look (and things to consider):

Has the application ever connected? if so, what has changed since then?

Is your registerd Data Source Name (DSN) properly defined through the ODBC manager?

Is (was) your physical link operting normally at the time? (Examine activity lights, etc)

Did high levels of activity use up all the connections? (does your app never connect, or just not connect some times)

Check your support libraries of .DLL/.VBX/.OCX for correct versions or duplicates.  Have you loaded ODBC drivers from anywhere lately?

Is it a Microsoft network using named pipes? then you should look for:( in system directory)

VB3 and 5.0VBSQL: W3DBLIB.DLL, DBNP3.DLL
VB4 and 5.0(16 bit): MSDBLIB3.DLL,DBNMP3.DLL
VB4 and 5.0(32bit): NTWDBLIB.DL, DBNMPNTW.DLL

Can you map (have you) to a shared drive on the file server?

Run out of users on the host server?

Do you have LAN permission to access the file server?

On SQL Server:
Improper SQL logon ID or password? or if proper, do you have appropriate permission?

Is (was) the server running?

Has the database been impoperly restored, causing problems with permissins, logon ids, and passwords?

Running out of space on (RAM or disk) on host server?

Server in single user mode for maintenance?

Are you a valid user on the host server (NT)?

Run out of licensed connections?

As you can see, there are many possibilities for a connection not completing, many I'm sure are not mentioned here.  But if you check out all of the above, outside of someone stealing your server and taking it home to play Donkey Kong, you should be able to find your problem.
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

739 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