Update Version 1.0.0.32
This commit is contained in:
@@ -445,21 +445,25 @@ public class clsDB
|
||||
}
|
||||
|
||||
|
||||
public void migrate_taf_resultate(string ortnr, string deldata)
|
||||
public string migrate_taf_resultate(string ortnr, string deldata)
|
||||
{
|
||||
SqlConnection myConnection = new SqlConnection(this.Connectionstring);
|
||||
SqlCommand myCommand = new SqlCommand("[dbo].[Migrate_TAF_Import]", myConnection);
|
||||
if (deldata == "False") ortnr = "0";
|
||||
// if (deldata == "False") ortnr = "0";
|
||||
myCommand.Parameters.Add(new SqlParameter("@ortnr", SqlDbType.Int, 3, ParameterDirection.Input, true, 10, 0, "", DataRowVersion.Proposed, ortnr));
|
||||
myCommand.Parameters.Add(new SqlParameter("@return", SqlDbType.Int, 3, ParameterDirection.Output, true, 10, 0, "", DataRowVersion.Proposed, 0));
|
||||
myCommand.Parameters.Add(new SqlParameter("@statistics", SqlDbType.VarChar, 8096, ParameterDirection.Output, true, 10, 0, "", DataRowVersion.Proposed, ""));
|
||||
|
||||
myCommand.CommandType = CommandType.StoredProcedure;
|
||||
try
|
||||
{
|
||||
myConnection.Open();
|
||||
myCommand.ExecuteNonQuery();
|
||||
return myCommand.Parameters["@statistics"].Value.ToString();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
return "Fehler:"+ex.Message;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user