Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ORA-01008: not all variables bound - DataReader
Message
De
23/03/2005 10:36:03
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
ORA-01008: not all variables bound - DataReader
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Oracle
Divers
Thread ID:
00998435
Message ID:
00998435
Vues:
83
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
Répondre
Fil
Voir

Click here to load this message in the networking platform