Solved

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

Posted on 1997-10-23
1
1,642 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
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…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
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

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now