Inset/update Oracle database

Posted on 2011-10-12
Last Modified: 2012-06-27
I got error "Multiple-step OLE DB operation generated errors." when using the following asp to insert/update the table.
If Request("num") = "" Then
      blnNew = True
     rsItems.Filter = "shop = " & Request("num")

   End If
    rsItems("shop") = Request.Form("shop")
    rsItems("phone") = Request.Form("phone")    
    Set rsItems = Nothing
Question by:mrong
    LVL 13

    Accepted Solution

    Have you checked that you use the appropriate  datatypes?
    Also check in case you have null values.
    LVL 14

    Assisted Solution

    I agree with georgekl

    This error occurs when values doesnt match with datatypes or it could be NULL

    Check this link

    Author Comment

    Below is what I have before my IF stmt and I can't see anything wrong.

    Dim rsItems
      Dim blnNew
      Set rsItems = Server.CreateObject("ADODB.Recordset")
      rsItems.Open "tbl1", objConn, adOpenForwardOnly, adLockOptimistic, adCmdTable

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
    How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
    This video shows how to recover a database from a user managed backup
    This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now