Sync from remote server: 2025-10-12 18:56:41

This commit is contained in:
2025-10-12 18:56:59 +02:00
commit 7e8ee264aa
553 changed files with 161447 additions and 0 deletions

21
RSN/cancellaDB.m Executable file
View File

@@ -0,0 +1,21 @@
function cancellaDB(IDcentralina,DTcatena,Data_scarico,FileName,conn)
fileID = fopen(FileName,'a');
fmt = '%s \r';
text = 'cancellaDB function started';
fprintf(fileID,fmt,text);
comando = ['delete from ELABDATADISP where UnitName = ''' IDcentralina...
''' and ToolNameID = ''' DTcatena ''' and EventDate >= ''' Data_scarico ''' '];
curs = exec(conn,comando);
text = strcat('Elaborated Data of Unit ', IDcentralina, ' Chain ',...
DTcatena,' deleted starting from date ',Data_scarico,' during the execution of LastElab function.');
fprintf(fileID,fmt,text);
text = 'cancellaDB function ended';
fprintf(fileID,fmt,text);
fclose(fileID);
end