N
ny2292000
I need someone who knows the subtleties of C# (VS2008, .net framework 3.5) and MSSQL2005
I am inserting info into a table using this writeforme method. It works but it seems that the transactions are never committed, that is, sqlserver exe uses more and more virtual memory. That is only written when I turn on and off the server
Am I doing something wrong
Thanks
Marc
public void WriteForMe(string s
SqlConnection connection = new global::System.Data.SqlClient.SqlConnection()
connection.ConnectionString = global::Trader.Properties.Settings.Default.Hedge_QuotesConnectionString
SqlCommand cmd = new SqlCommand()
cmd.Connection = connection
using (connection
using (cmd
cmd.CommandText = s
tr
if (cmd.Connection.State == System.Data.ConnectionState.Closed) { cmd.Connection.Open();
cmd.ExecuteNonQuery()
catch (SqlException se
se.Data.Clear()
finall
if (cmd.Connection != null
cmd.Connection.Close()
I am inserting info into a table using this writeforme method. It works but it seems that the transactions are never committed, that is, sqlserver exe uses more and more virtual memory. That is only written when I turn on and off the server
Am I doing something wrong
Thanks
Marc
public void WriteForMe(string s
SqlConnection connection = new global::System.Data.SqlClient.SqlConnection()
connection.ConnectionString = global::Trader.Properties.Settings.Default.Hedge_QuotesConnectionString
SqlCommand cmd = new SqlCommand()
cmd.Connection = connection
using (connection
using (cmd
cmd.CommandText = s
tr
if (cmd.Connection.State == System.Data.ConnectionState.Closed) { cmd.Connection.Open();
cmd.ExecuteNonQuery()
catch (SqlException se
se.Data.Clear()
finall
if (cmd.Connection != null
cmd.Connection.Close()