[Mono-dev] Strange MSSQL provider behavior
Andrew Koryavchenko
avk at rsdn.ru
Fri Mar 21 10:43:22 EDT 2008
Test sample:
static void Main()
{
const string connStr =
@"User ID=Tornado;Pwd=parusina;Net=dbmssocn;Server=127.0.0.1\DEV;Integrated
Security=no;Initial Catalog=LocalDB";
const string cmdText = "SELECT COUNT(*) FROM units";
for (var i = 0; i < 3; i++)
using (var con = new SqlConnection(connStr))
using (var cmd = new SqlCommand(cmdText, con))
{
con.Open();
Console.WriteLine("{0} : {1}", i, cmd.ExecuteScalar());
}
}
https://bugzilla.novell.com/show_bug.cgi?id=372932
--
With best regards,
Andrew Koryavchenko, Visual C# MVP [Architecture].
More information about the Mono-devel-list
mailing list