Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-26-2012, 10:14 PM   PM User | #1
karlhungus
New to the CF scene

 
Join Date: Apr 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
karlhungus is an unknown quantity at this point
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
karlhungus is offline   Reply With Quote
Old 02-27-2012, 02:58 AM   PM User | #2
karlhungus
New to the CF scene

 
Join Date: Apr 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
karlhungus is an unknown quantity at this point
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
karlhungus is offline   Reply With Quote
Reply

Bookmarks

Tags
asp.net, datatable, oracle, visual studio 2010, windows forms

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:54 AM.


Advertisement
Log in to turn off these ads.