Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using a parameter in a DataTable - ORA-01008: not all variables bound

    Environment:
    Visual Studio 2010, Windows Forms Application, Oracle Database

    I am trying to use a parameter in a DataSet.xsd DataTable.
    The query and parameter work fine in Query Builder but gives an error if I try "Preview Data" or use in my application.

    Error: An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
    Additional information: ORA-01008: not all variables bound

    For full details on the application setup / my troubleshooting so far see here:
    http://www.fullstackbusinessdesign.c...ORA-01008.html

  • #2
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Solution

    I am using the OleDb provider for Oracle.
    The bind variable should be a question mark ? not :DEPTCODE

    The bind variable :DEPTCODE would be valid for System.Data.OracleClient.

    Many thanks to Prashant Kumar for this solution.
    http://forums.asp.net/members/Prashant%20Kumar.aspx


  •  

    Tags for this Thread

    Posting Permissions

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