Solved

Problem with connection to SQL2000

Posted on 2007-03-20
2
483 Views
Last Modified: 2008-02-01
Hi,

I'm with Dotster.com and I keep getting these problems when connecting to the database

Provider error '80004005'
Unspecified error
/includes/inc_default.asp, line 265

OR

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver]Communication link failure
/includes/inc_send_expired.asp, line 14
 
OR

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver]Communication link failure
/includes/Inc_Default.asp, line 57



Are these generated by bad codes on the .asp files or the server that runs the websites.

Thanks
0
Comment
Question by:TO_Steve
2 Comments
 
LVL 28

Expert Comment

by:imran_fast
ID: 18762124
from your website server ping the database server and check if you are able to communicate with it.
0
 
LVL 21

Accepted Solution

by:
ziolko earned 250 total points
ID: 18762580
MSDN says:

ODBC 80004005 Error
If the connection scheme for accessing SQL Server is not set correctly, users viewing your database application may receive an ODBC 80004005 error message. To correct this situation, try using a local named pipe connection instead of a network named pipe connection if SQL Server is running on the same computer as IIS. Windows Server 2003 family security rules will not be enforced because the pipe is a local connection rather than a network connection, which can be impersonated by the anonymous user account. Also, in the SQL Server connection string (either in the Global.asa file or in a page-level script), change the parameter SERVER=server name to SERVER=(local). The keyword (local) is a special parameter recognized by the SQL Server ODBC driver. If this solution does not work, then try to use a non-authenticated protocol between IIS and SQL Server, such as TCP/IP sockets. This protocol will work when SQL Server is running locally or on a remote computer.
Note  To improve performance when connecting to a remote databases, use TCP/IP Sockets.


ziolko.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MS SQL Backup 24 70
Link SQL table to Webpage 9 38
separate column 24 20
SQL Inner Join Vs SubQueries 9 25
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
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 backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how the fundamental information of how to create a table.

705 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

19 Experts available now in Live!

Get 1:1 Help Now