[Mono-bugs] [Bug 36578][Nor] New - Cannot open two connections at the same time to Microsoft SQL Server

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 10 Jan 2003 14:23:01 -0500 (EST)


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 egonia@acxiom.com.

http://bugzilla.ximian.com/show_bug.cgi?id=36578

--- shadow/36578	Fri Jan 10 14:23:01 2003
+++ shadow/36578.tmp.16227	Fri Jan 10 14:23:01 2003
@@ -0,0 +1,60 @@
+Bug#: 36578
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.Data.SqlClient
+AssignedTo: rodrigo@ximian.com                            
+ReportedBy: egonia@acxiom.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Cannot open two connections at the same time to Microsoft SQL Server
+
+Description of Problem:
+I using mono 0.17 on Windows and Linux. I had trouble updating to the 
+latest CVS so I cannot verify the bug still exists in current CVS.
+
+Executing the following code fails. See Actual Results for error.
+	using System;
+	using System.Data.SqlClient;
+class test
+{
+	public static void Main()
+	{
+		SqlConnection conn1 = new SqlConnection
+("Server=cwynms03.corp.acxiom.net;Initial Catalog=SNMPCollect;User 
+ID=datauser;Password=select!");
+		conn1.Open();
+		
+		SqlConnection conn2 = new SqlConnection
+("Server=cwynms03.corp.acxiom.net;Initial Catalog=SNMPCollect;User 
+ID=datauser;Password=select!");
+		conn2.Open();
+		
+		conn1.Close();
+		conn2.Close();
+	}
+}
+
+
+Actual Results:
+Unhandled Exception: System.NullReferenceException: A null value was found 
+where
+ an object instance was required
+in <0x00060> 00 Mono.Data.Tds.Protocol.Tds70:BuildParameters ()
+in <0x00359> 00 Mono.Data.Tds.Protocol.Tds70:BuildProcedureCall (string)
+in <0x0002e> 00 Mono.Data.Tds.Protocol.Tds70:ExecProc 
+(string,Mono.Data.Tds.TdsM
+etaParameterCollection,int,bool)
+in <0x00027> 00 Mono.Data.Tds.Protocol.Tds:ExecProc (string)
+in <0x00766> 00 System.Data.SqlClient.SqlConnection:Open ()
+in [0x0001d] (at /home/egonia/snmpcollect/test.cs:14) 00 .test:Main ()
+
+Expected Results:
+Open both connections like when run on Microsoft.Net platform.