If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Problem Connecting to Access Db from ASP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-27-03, 04:50
PriyaBabu PriyaBabu is offline
Registered User
 
Join Date: Sep 2003
Posts: 4
Problem Connecting to Access Db from ASP

I have some ASP files on a server. There is also a different folder which contains a mdb. The folder doesnt have right to any user. Connection to the mdb is established through a connection string / DSN. The DSN is created on the server in which the files and the mdb lie. When running my site i get the following error.

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data

Could anyone help me in solving this issue as soon as possible.

Thank you,

Regards,
K. Sripriya
Reply With Quote
  #2 (permalink)  
Old 09-28-03, 21:07
jlot6 jlot6 is offline
Registered User
 
Join Date: Sep 2003
Location: Newark, Vermont
Posts: 20
Are you sure you are giving the DSN the right user name and password
Code:
Rs.open “table1”, “DSN=data;uid=username;pwd=password”
If this doesn't help, can you display some of your sample code...
Reply With Quote
  #3 (permalink)  
Old 09-30-03, 00:09
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Yes it does sound like a problem with the connection string and/or DSN as the database apparently isn't being found.
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
  #4 (permalink)  
Old 11-11-03, 14:20
janakireddy_g janakireddy_g is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
Re: Problem Connecting to Access Db from ASP

Quote:
Originally posted by PriyaBabu
I have some ASP files on a server. There is also a different folder which contains a mdb. The folder doesnt have right to any user. Connection to the mdb is established through a connection string / DSN. The DSN is created on the server in which the files and the mdb lie. When running my site i get the following error.

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data

Could anyone help me in solving this issue as soon as possible.

Thank you,

Regards,
K. Sripriya

even i have the same problem ,in case if u get the solution pls e-mail me
Reply With Quote
  #5 (permalink)  
Old 11-11-03, 14:20
janakireddy_g janakireddy_g is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
Re: Problem Connecting to Access Db from ASP

Quote:
Originally posted by PriyaBabu
I have some ASP files on a server. There is also a different folder which contains a mdb. The folder doesnt have right to any user. Connection to the mdb is established through a connection string / DSN. The DSN is created on the server in which the files and the mdb lie. When running my site i get the following error.

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data

Could anyone help me in solving this issue as soon as possible.

Thank you,

Regards,
K. Sripriya

even i have the same problem ,in case if u get the solution pls e-mail me
Reply With Quote
  #6 (permalink)  
Old 11-11-03, 14:22
janakireddy_g janakireddy_g is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
Re: Problem Connecting to Access Db from ASP

Quote:
Originally posted by PriyaBabu
I have some ASP files on a server. There is also a different folder which contains a mdb. The folder doesnt have right to any user. Connection to the mdb is established through a connection string / DSN. The DSN is created on the server in which the files and the mdb lie. When running my site i get the following error.

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data

Could anyone help me in solving this issue as soon as possible.

Thank you,

Regards,
K. Sripriya

even i have the same problem ,in case if u get the solution pls e-mail me
Reply With Quote
  #7 (permalink)  
Old 11-12-03, 05:42
PriyaBabu PriyaBabu is offline
Registered User
 
Join Date: Sep 2003
Posts: 4
Problem Connecting to Access DB

If u r using an Access Db, instead of creating a DSN, user provider to connect to the Database which should solve ur problem. I removed the DSN and used provider to connect to the DB and the problem is solved.

Also ensure that the MDB file has full access while the folder doesn't have write access for the Internet guest account.

Regards,
K. Sripriya
Reply With Quote
  #8 (permalink)  
Old 11-12-03, 11:00
myLittleTools myLittleTools is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
also check that the database is not open in MS Access software...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On