Solved

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

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

828 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