Added Using statements
This commit is contained in:
parent
7d6d6952df
commit
c2d645ab91
@ -189,11 +189,17 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
SqlConnection cn = VEPROMS_SqlConnection;
|
//SqlConnection cn = VEPROMS_SqlConnection;
|
||||||
SqlCommand cmd = new SqlCommand("purgedata", cn);
|
//SqlCommand cmd = new SqlCommand("purgedata", cn);
|
||||||
cmd.CommandType = CommandType.StoredProcedure;
|
using (SqlConnection cn = VEPROMS_SqlConnection)
|
||||||
cmd.CommandTimeout = 0;
|
{
|
||||||
cmd.ExecuteNonQuery();
|
using (SqlCommand cmd = new SqlCommand("purgedata", cn))
|
||||||
|
{
|
||||||
|
cmd.CommandType = CommandType.StoredProcedure;
|
||||||
|
cmd.CommandTimeout = 0;
|
||||||
|
cmd.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user