Bonsoir a tous, voici le bout de mon code qui ne marche pas :
OConnexion.ConnectionString = "Data Source=bdd;User Id=utilisateur;Password=mdp;";
OConnexion.Open();
string sQuery = "SELECT libelle from t_processus";
// Instanciation de l'objet OracleCommand et de ses propriétés
OracleCommand cmd = new OracleCommand(sQuery);
cmd.Connection = OConnexion;
cmd.CommandType = CommandType.Text;
OracleDataReader reader = cmd.ExecuteReader();
// Tant qu'il y a des résultats à lire, on les affiche
while (reader.Read())
{
// On affiche le nom et le numéro
MessageBox.Show("Libelle: " + reader.GetInt32(0));
}
Le probleme c'est que mon reader ne trouve aucun enregistrements :s lorsque je tape ma requete sous Oracle 10g sa marche bien,
pourquoi ce probleme ?
Merci de vous reponses ;)