Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help connecting to Access database on website.

Status
Not open for further replies.

Techwarrior

Programmer
Apr 19, 2006
14
US
I have an Access database stored on my website in the following location: I am trying to connect to it in my web.config file with the following code:
<connectionStrings>
<add name="testdbConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=// OLEDB:System Database=system.mdw;uid=myid;password=mypassword"
providerName="System.Data.OleDb" />
</connectionStrings>

Everytime I try to access it with my webpage I get the following message:"It is already opened exclusively by another user, or you need permission to view its data."

Can anyone help me?
 
You'll need to specify the physical path to the database rather than the web address.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top