Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ORA-01008: not all variables bound - DataReader
Message
From
23/03/2005 10:36:03
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
ORA-01008: not all variables bound - DataReader
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Oracle
Miscellaneous
Thread ID:
00998435
Message ID:
00998435
Views:
82
Hi, Can anyone tell me why this code (last line) gives the error:
ORA-01008: not all variables bound

Dim OracleCommand As OracleCommand = New OracleCommand("select * from txfldlog where txid=:pTxID", oSource)
OracleCommand.Parameters.Add(New OracleParameter("pTxID", OracleType.Number, 20, "txid")).Direction = ParameterDirection.Input
Dim OracleDataReader As OracleDataReader = OracleCommand.ExecuteReader()

As far as I can see I am doing it correctly. Alternatively anyone have some code showing how to return a parameterized query into a datareader obj.

Thanks
Tim
Reply
Map
View

Click here to load this message in the networking platform