28 lines
705 B
C#
28 lines
705 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
namespace SimpleProcedureRunner
|
|
{
|
|
class Program
|
|
{
|
|
static int Main(string[] args)
|
|
{
|
|
int o = -1;
|
|
try{
|
|
o = 1;
|
|
string procedure = ConfigurationManager.AppSettings["ProcedureName"];
|
|
int res = DataAccess.ExecuteNonQueryStoredProcedure(DBProvider.SqlServerStampeC6, procedure, null);
|
|
Console.WriteLine("Succeeded");
|
|
}catch(Exception ex){
|
|
Console.WriteLine(ex.Message);
|
|
}
|
|
return o;
|
|
}
|
|
}
|
|
}
|