IBM Computer, Laptops and Servers

Back Homepage Content Directory Resource Guide Blog

Why does Access give me 'unspecified error' messages?

You may have seen this error: 
 
Provider error '80004005' 
Unspecified error 
/<file>.asp, line <line> 
 
Aside from the improper use of MEMO fields (see Article #2188), this may be caused by the mode in which Access is opened. Unless otherwise specified, IIS opens Access databases with adModeUnknown... which has proven to cause random problems in certain configurations. You can overcome this by setting the mode to adModeReadWrite *before* opening the connection, such as: 
 
<% 
    cst = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" 
    cst = cst & Server.MapPath("/<pathtofile.mdb>") 
    set conn = CreateObject("ADODB.Connection") 
    conn.mode = 3 ' adModeReadWrite 
    conn.open cst 
%>
 
(For more information on connection strings, see Article #2126.) 
 
To broaden your search on 80004005 errors, you might wish to review Article #2009.

[ Comment, Edit or Article Submission ]

Share this:

Add To Yahoo MyWeb Add To Google Bookmarks Add To Furl Fav This With Technorati Add To Newsvine Add To Bloglines Add To Ask Add To Windows Live Add To Slashdot Stumble This Digg This Add To Del.icio.us Add To Reddit

More about:

Oct November 2008 Dec
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

IBM Computer, Laptops and Servers Blog on Technorati Related Blog of IBM Computer, Laptops and Servers on Sphere
Content Directory
Resource Guide


Symantec AntiVirus Security and Storage Solutions

Website Links
IBM Computer, Laptops and Servers Copyright © 2008 www.ibmfans.com. All rights reserved. Site Map
Homepage | Blog | Advertise | Privacy Policy | Disclaimer | Contact Us | Links