Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 12th, 2008, 09:41 AM
Authorized User
 
Join Date: Jul 2007
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Default 0x80004005 ODBC Error in ASP Script

Hi Friends


Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] error
/Shopping1/shop$db.asp, line 312

I am getting this particular error in my asp file.

Sub UpdateContact()
Dim dbc
' on error resume next
     ShopOpenDatabase dbc
     Set objRS = Server.CreateObject("ADODB.Recordset")
      objRS.open "Customers", dbc, adOpenKeyset, adLockOptimistic
' CheckError
    objRS.AddNew
    objRS("Firstname") = strFirstname
    objRS("Lastname") = strLastname
    objRS("Address") = strAddress
    objRS("City") = strCity
    objRS("State") = strState
    objRS("PostCode") = strPostCode
    objRS("Country") = strCountry
    objRS("Company") = strCompany
    objRS("Phone") = strPhone
    objRS("Workphone") = strWorkphone
    objRS("Mobilephone") = strMobilephone
    objRS("Fax") = strFax
    objRS("Email") = strEmail
        If strwebsite <>"" then
            objRS("website") = strwebsite
        end if
312: objRS.Update :(:(
        ShopCloseDatabase dbc
' ShopOpenDatabase
        LocateCustomer strLastName, strEmail
        Session("customerid") = strCustomerID

 ' CheckError
end sub

Can anybody solve my problem...



 
Old September 12th, 2008, 03:09 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

This is NOT an ASP.NET question. This is classic ASP, so you are posting in the wrong forum.

Having said that: The first thing to try, I think, is to replace your use of the Access Driver with the JET OLE DB driver.

Look here:
http://www.carlprothman.net/Default....orMicrosoftJet

If you can't figure it out from that, then post your code that makes the connection...but in the "Classic ASP" forum this time.

p.s.: Unfortunately, that error message can happen for many many different reasons. It's about the least informative of all the many bad MS error messages.

p.p.s.: And this is an inefficient way to add a new record. But let's work on that after you try changing the connection code. That will be in your ShopOpenDatabase SUB, by the by.





Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC Error Type 0x80004005 hbansal Classic ASP Professional 22 February 25th, 2009 12:57 AM
Error Type:Server.MapPath(), ASP 0171 (0x80004005) phantom3008 ASP.NET 1.0 and 1.1 Basics 2 April 26th, 2007 02:28 PM
Error with ASP.NET opening OleDb/ODBC database gdelia1 ADO.NET 6 October 5th, 2005 01:50 AM
ODBC ERROR IN ARCHIVE /include/header.asp, line 11 jonnyl Forum and Wrox.com Feedback 1 June 11th, 2003 09:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.