Re: Oracle 9.2 OLEDB and NVARCHAR2

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Mike Johnston (mike_at_yahoo.com)
Date: 05/04/04

  • Next message: Kevin Frey: "Re: Local machine logon with Mdac 2.8"
    Date: Tue, 4 May 2004 16:10:42 -0400
    
    

    To follow up:
    It seems that Oracle wants to see the obvalue in the bindings to have a
    value for an output parameter. This seems to be controlling what Oracle
    thinks the length is and not the cbLen or the "paramsize" on the bindings
    structure.

    When I set this to the length, I can assign exactly up to that number of
    characters to the string in the SP.

    "Mike Johnston" <mike@yahoo.com> wrote in message
    news:uGyLdEeMEHA.2500@TK2MSFTNGP12.phx.gbl...
    > Hi,
    > I am calling a stored procedure with an OUT parameter of NVARCHAR2. I
    have
    > set the property NVarChar for the command as documented.
    >
    > When I call my SP, i can set these OUT parameters to null with no issue.
    I
    > can also assign OUT parameters that are integers in the SP that get
    returned
    > correctly. It's only when I assign a non-null value to the NVARCHAR2 OUT
    > parameters i have the issue. I am using C++ and calling the OLEDB function
    > directly. This same code works perfectly with the SQL Server OLEDB
    provider
    > (not that this means much :-)
    >
    > If I write another SP that calls this SP with OUT NVARCHAR2 parameters
    this
    > works as expected. It must be something in the binding I'm guessing.
    >
    > Thanks in advance
    >
    >


  • Next message: Kevin Frey: "Re: Local machine logon with Mdac 2.8"

    Relevant Pages

    • Problem with DBD:Oracle and bind variables
      ... been stable for years, but suddenly, I'm finding that DBI is choking ... retrieve text for error ORA-03113 (DBD ERROR: ... If I replace the bindings with hardcoded values, ... I know that the machine hosting the Oracle instance had "issues" just ...
      (perl.dbi.users)
    • Re: Convert select statement to a stored procedure
      ... Set conn = Server.CreateObject ... My Oracle procedure is: ... CREATE OR REPLACE PROCEDURE TestGetData (i_FIRSTNAME IN NVARCHAR2) AS ... Click on REF CURSOR. ...
      (comp.databases.oracle.misc)
    • Convert select statement to a stored procedure
      ... convert to a stored procedure on an Oracle 9i schema: ... Set conn = Server.CreateObject ... My Oracle procedure is: ... CREATE OR REPLACE PROCEDURE TestGetData (i_FIRSTNAME IN NVARCHAR2) AS ...
      (comp.databases.oracle.misc)