473,395 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to fix "Error accessing the database"?

Hello,

I am running IIS7 with SQL 2008 on 64 bit version of Windows Server 2008. I also have a mix of ASP-based web applications served off of this server. Most of these applications in ASP.NET, but 3 of them are still in Classic ASP.
I was able to sucessfully use all of these applications off of my 32 bit Windows XP desktop, but now that I upgraded my desktop to the 64 bit Windows 7, all of a sudden I can no longer access any of the Classic ASP applications. The error I keep getting is "Error accessing the database".
Does anybody know how to fix this issue?

Thank you in advance.
Oct 27 '10 #1
4 2075
jhardman
3,406 Expert 2GB
Sounds like your db provider isn't working with windows 08. What does your db connection string look like?

Jared
Oct 27 '10 #2
Here is my connection string:

"Provider=SQLOLEDB;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DATABASENAME;Data Source=SERVERNAME"
Oct 30 '10 #3
I just figured my problem.
The "Error accessing the database" prompt was due to the initial stored procedure that was used to trace and record the IP of the user. This stored procedure was written to expect the IP in the IP4 format (XXX.XXX.XXX.XXX). My new Winodws Vista by default prefers to use IP6 as default. The IP address in IP6 format is a string that is longer than 15 characters. Because the stored procedure was originally written to expect 15 character long IP address, it was failing.
After increasing the length of the IP parameter to 50 characters, I now can access my old applications.
Oct 31 '10 #4
jhardman
3,406 Expert 2GB
glad you got it figured out. Thanks for posting your solution.

Jared
Nov 1 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Wanda | last post by:
Hi there, I am getting a Error accessing the OLE registry when the system goes hit the following line set xWd = Server.CreateObject("Word.Application") in my asp? Anything I have to set-up...
1
by: Richard Galli | last post by:
I have a shopping cart with an automatic installation script. Add a new database without tables, configure the script with the table's user/password, and it's supposed to set up all the tables in...
1
by: TJRobertsJob | last post by:
Was wondering if someone could help. Over the last month I've been developing a small database application, using Access 2000, for use in a friends shop. Everything was going well until about a...
3
by: N. Graves | last post by:
Hello, I don't understand this error message." Error accessing File. Network Connection may have been lost." I'm not using any network connection for the database. In the VBA editor is goes...
3
by: Pete Atkins | last post by:
Help!!!!!!!! This may have been posted bfore, but i cannot find it. Have written a db in access 2003, opened in access 2000, saved, re-opened,etc - all was fine. Added some new forms /...
1
by: jim | last post by:
Hi Ng I have got a hughes problem. I have got a file which I have been working on for quite a while. But now suddently no matter what button I am pressing there comes an error saying: Error...
1
by: Jody Gelowitz | last post by:
This one should be relatively simple, though I have yet to figure it out. I have an ASP.NET project which uses LDAP authentication to login to the system. When run on our Development or Staging...
4
by: Alonso | last post by:
Hola amigos, Me he creado una biblioteca de clases y dentro una clase (Class1) que hereda de System.EnterpriseServices.ServicedComponent. En la clase he creado una funciĆ³n de tipo System.Guid y...
2
by: GCM | last post by:
I have a database which was created from another parent database by combining some fields into one field for clerification purposes. When I create a for with the following command I get this error:...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.