G
Guest
Lately the size of our transaction logs have increased substantially and I
just need to know it's not something wrong with my knowledge of ado and
programming. I've never had formal tranning on ADO.
Is the following is the ideal way to execute an Update?
System.Data.SqlClient.SqlConnection sqlConnect = new
System.Data.SqlClient.SqlConnection(BOM.SqlServerConnect);
System.Data.SqlClient.SqlCommand sqlCommand = new
System.Data.SqlClient.SqlCommand(Query, sqlConnect);
sqlConnect.Open();
sqlCommand.ExecuteNonQuery();
sqlConnect.Close();
There is no commit here?
also, when writing stored procedures, should there be commits?
Does anyone know of website with best practices for ado and MS Sql?
just need to know it's not something wrong with my knowledge of ado and
programming. I've never had formal tranning on ADO.
Is the following is the ideal way to execute an Update?
System.Data.SqlClient.SqlConnection sqlConnect = new
System.Data.SqlClient.SqlConnection(BOM.SqlServerConnect);
System.Data.SqlClient.SqlCommand sqlCommand = new
System.Data.SqlClient.SqlCommand(Query, sqlConnect);
sqlConnect.Open();
sqlCommand.ExecuteNonQuery();
sqlConnect.Close();
There is no commit here?
also, when writing stored procedures, should there be commits?
Does anyone know of website with best practices for ado and MS Sql?