From: Derek E. <de...@sp...> - 2003-10-27 23:20:56
|
After executing ExecuteReader on a command object I am trying to loop = over the results and write them to the Console. However when I execute reader.Read() the program gives no response and basically hangs. =20 Here is the code that I am using (the sproc is just a select statement returning two columns) =20 FbConnection conn =3D new FbConnection(connstring); FbCommand cmd =3D new FbCommand( "GetResults", conn ); cmd.CommandType =3D CommandType.StoredProcedure; conn.Open(); FbDataReader reader =3D cmd.ExecuteReader(); =20 while (reader.Read()) { Console.WriteLine("(0) {1}", reader.GetValue(0), = reader.GetValue(1)); } =20 Am I doing something wrong, or is this a bug?? I am using Firebird 1.5.0 (Win32) and Dot Net Provider Beta 3 =20 Thanks, Derek |