Solved

Error when Switching from MS SQL to Access

Posted on 2011-03-24
6
311 Views
Last Modified: 2012-05-11
I have created a simple poratl in asp (using Dreamweaver). Everything went well with SQL database.  However, when I convert the the database to Access and run the page I get the following error.

I place my files correctly and even check the connection path is correct.
DATABASE PATH:
C:\Inetpub\wwwroot\project1\db\project1.mdb

Connection String:
STRDSN = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="& Server.MapPath("/project1/db/project1.mdb")
set callDB=Server.CreateObject("ADODB.Connection")
callDB.Open STRDSN 

Open in new window


Error Type:
Microsoft JET Database Engine (0x80004005)
Could not find file 'C:\WINDOWS\system32\dbo.mdb'.
/apps/assc/configsys.asp, line 217

Any ideas at all what may be causing this?
I hope to get a speedy response :(
Thank you.
0
Comment
Question by:hannsmedia
6 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 35205695
Seems a little odd that it is complaining about "dbo.mdb" rather than "project1.mdb". Does you Access database reference any other external databases?
0
 
LVL 4

Expert Comment

by:qasim_md
ID: 35205696
How did you make your Access database: "by hand", or by exporting data out of SQL Server??

dbo is the user name for the DataBase Owner in SQL Server and is often used when referencing objects in the database.

ie. These two queries are identical in SQL Server:

SELECT * FROM MyTable

and

SELECT * FROM dbo.MyTable

Maybe, if you created your Access DB by exporting data out of SQL Server, it did some weird foo whereby it expects database user information to be stored in another .mdb?????

I'm just guessing here because it's a strange problem you're describing...
0
 
LVL 4

Accepted Solution

by:
qasim_md earned 500 total points
ID: 35205712
in Continuation to the above response of mine... I Suggest to fix this issue, you can manually create a project1.mdb file and then try to Export the data to this access file... Does it help ? let me know ...
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 35206291
You have a permissions problem.  The Anonymous user does not have access to the database.
0
 

Author Comment

by:hannsmedia
ID: 35207850
How do I change the permission in Access?
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 35208914
>>How do I change the permission in Access? <<
It has nothing to do with MS Access per se and everything to do with the file permissions on the mdb (and why I would never consider using a file based database for a website).  I would start by giving access to Everyone and work yourself down from there.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

803 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