[Mono-bugs] [Bug 372932] Connection to Microsoft SQL Server Failed

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 22 09:13:19 EDT 2008


User vvaradhan at novell.com added comment

Veerapuram Varadhan <vvaradhan at novell.com> changed:

           What    |Removed                                         |Added
                 CC|                                                |vvaradhan at novell.com
             Status|NEW                                             |NEEDINFO
      Info Provider|                                                |avk at rsdn.ru

--- Comment #1 from Veerapuram Varadhan <vvaradhan at novell.com>  2008-04-22 07:13:18 MST ---
I tried the same example, with slightly modified connection string:

static void Main()
        const string connStr =
Security=no;Initial Catalog=monotest";
        const string cmdText = "SELECT COUNT(*) FROM tmp_table";
        for (var i = 0; i < 3; i++)
                using (var con = new SqlConnection(connStr))
                using (var cmd = new SqlCommand(cmdText, con))
                        Console.WriteLine("{0} : {1}", i, cmd.ExecuteScalar());

And got:

0 : 2
1 : 2
2 : 2

as I had two rows on the tmp_table.  I tested this with both 1.9 branch and

My MS SQL Server Management Studio Express reported the following version

Microsoft SQL Server Management Studio Express                                 

Microsoft Data Access Components (MDAC)                                        
2000.085.1117.00 (xpsp_sp2_rtm.040803-2158)

Microsoft MSXML                                         2.6 3.0 4.0 6.0 

Microsoft Internet Explorer                                            

Microsoft .NET Framework                                               

Operating System                                                5.1.2600

Which version of Mono did you try with?

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list