Added Command Timeout to each query that did not have a specified timeout

This commit is contained in:
Rich
2017-03-01 15:42:00 +00:00
parent b5f4a0751e
commit 32cf8e2f3c
49 changed files with 315 additions and 0 deletions

View File

@@ -772,6 +772,7 @@ namespace VEPROMS.CSLA.Library
using (SqlCommand cm = cn.CreateCommand())
{
cm.CommandType = CommandType.StoredProcedure;
cm.CommandTimeout = Database.SQLTimeout;
cm.CommandText = "addPdf";
// Input All Fields - Except Calculated Columns
cm.Parameters.AddWithValue("@DocID", DocID);
@@ -813,6 +814,7 @@ namespace VEPROMS.CSLA.Library
using (SqlCommand cm = cn.CreateCommand())
{
cm.CommandType = CommandType.StoredProcedure;
cm.CommandTimeout = Database.SQLTimeout;
cm.CommandText = "addPdf";
// Input All Fields - Except Calculated Columns
cm.Parameters.AddWithValue("@DocID", myDocument.DocID);
@@ -878,6 +880,7 @@ namespace VEPROMS.CSLA.Library
using (SqlCommand cm = cn.CreateCommand())
{
cm.CommandType = CommandType.StoredProcedure;
cm.CommandTimeout = Database.SQLTimeout;
cm.CommandText = "updatePdf";
// All Fields including Calculated Fields
cm.Parameters.AddWithValue("@DocID", DocID);
@@ -933,6 +936,7 @@ namespace VEPROMS.CSLA.Library
using (SqlCommand cm = cn.CreateCommand())
{
cm.CommandType = CommandType.StoredProcedure;
cm.CommandTimeout = Database.SQLTimeout;
cm.CommandText = "updatePdf";
// Input All Fields - Except Calculated Columns
cm.Parameters.AddWithValue("@DocID", docID);
@@ -978,6 +982,7 @@ namespace VEPROMS.CSLA.Library
using (SqlCommand cm = cn.CreateCommand())
{
cm.CommandType = CommandType.StoredProcedure;
cm.CommandTimeout = Database.SQLTimeout;
cm.CommandText = "deletePdf";
cm.Parameters.AddWithValue("@DocID", criteria.DocID);
cm.Parameters.AddWithValue("@DebugStatus", criteria.DebugStatus);
@@ -1005,6 +1010,7 @@ namespace VEPROMS.CSLA.Library
using (SqlCommand cm = cn.CreateCommand())
{
cm.CommandType = CommandType.StoredProcedure;
cm.CommandTimeout = Database.SQLTimeout;
cm.CommandText = "deletePdf";
// Input PK Fields
cm.Parameters.AddWithValue("@DocID", docID);
@@ -1072,6 +1078,7 @@ namespace VEPROMS.CSLA.Library
using (SqlCommand cm = cn.CreateCommand())
{
cm.CommandType = CommandType.StoredProcedure;
cm.CommandTimeout = Database.SQLTimeout;
cm.CommandText = "existsPdf";
cm.Parameters.AddWithValue("@DocID", _DocID);
cm.Parameters.AddWithValue("@DebugStatus", _DebugStatus);