[Mono-bugs] [Bug 60398][Cri] New - SqlDataAdapter.Fill
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 18 Jun 2004 04:16:47 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by haag.wolfgang@oce.de.
http://bugzilla.ximian.com/show_bug.cgi?id=60398
--- shadow/60398 2004-06-18 04:16:47.000000000 -0400
+++ shadow/60398.tmp.6943 2004-06-18 04:16:47.000000000 -0400
@@ -0,0 +1,75 @@
+Bug#: 60398
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: Liniux RedHat9 and Windows
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Critical
+Component: Sys.Data.SqlClient
+AssignedTo: rodrigo@novell.com
+ReportedBy: haag.wolfgang@oce.de
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: SqlDataAdapter.Fill
+
+If i fill a DataTable with the SqlDataAdapter fill method there are no
+datas in the DataTable. If I try that with mono-Beta 1 it works. The Error
+is since beta2.
+
+Here is my Code:
+
+using System;
+using System.Data;
+using System.Data.SqlClient;
+
+namespace Test
+{
+ /// <summary>
+ /// Zusammenfassung für Class1.
+ /// </summary>
+ class Class1
+ {
+ /// <summary>
+ /// Der Haupteinstiegspunkt für die Anwendung.
+ /// </summary>
+ [STAThread]
+ static void Main(string[] args)
+ {
+ Console.WriteLine("Connecting");
+
+ SqlConnection myConnection = new SqlConnection
+("server=localhost;database=testDB;User ID=test;Password=test");
+ SqlDataAdapter myAdapter = new SqlDataAdapter
+("select * from Country",myConnection);
+ myConnection.Open();
+
+ DataTable dt = new DataTable();
+ myAdapter.Fill(dt);
+
+ Console.WriteLine("Number of Records " +
+dt.Rows.Count);
+ myConnection.Close();
+ Console.WriteLine("Connection closed");
+ Console.WriteLine("Press ENTER");
+ Console.ReadLine();
+ }
+ }
+}
+
+
+
+
+
+
+Actual Results:
+No nUmber of Rows in the DataTable
+
+Expected Results:
+The result from the table in the database
+
+How often does this happen?
+always