Click here to Skip to main content
16,017,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My ASP page located in one server say server A and MSAccess database located on server B and I am connecting this MSAccess database through ASP file but its giving error "The connection cannot be used to perform this operation. It is either closed or invalid in this context." I have did all but still have a problem but when i m connecting the same with VB6.0 it does not create any issue. can anyone help me please?
Posted
Comments
uspatel 3-Nov-11 7:53am    
what connection string you have used

follow this link, i think there is an error in your connection string.


http://www.connectionstrings.com/[^]
 
Share this answer
 
v2
Below are the connection string used by me in my asp page.
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\serverB\d$\Access Server\Access Databases\test.mdb;Persist Security Info=False"
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900