CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    10

    Problem: ORACLE <-> DataEnvironment



    It's impossible to set a "WHERE-Statement" with dynamic parameters in a DataEnvironment-Object. It doesn't matter if I set up the Connection with 'Microsoft OLE DB Provider for Oracle' or with 'Microsoft OLE DB Provider for ODBC Drivers'. I set the parameter with the SQL Builder like that:

    SELECT ....

    FROM ....

    WHERE (XYZ = %PARAM%)

    But when I try to RUN the statement a error occurs.


    Is there a trick to add parameters to a simply query (not a stored procedure) ?


    Please help me!!!!!!


    Ralf

    [email protected]



  2. #2
    Join Date
    Apr 1999
    Posts
    16

    Re: Problem: ORACLE &lt;-&gt; DataEnvironment



    Try using the following syntax:


    SELECT ...

    FROM ...

    WHERE (XYZ = ?)


    Look into the Parameter/Parameters properties to set it dynamically at run-time.


    -Jim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured