Compile function Delete_SCHED_DET_NG_Record_From_SQL(Connection, Key)

/*****************************************************************************\
	Deletes the given SCHED_DET_NG record from the MSSQL database.
	
	History
	-------
	02/01/2023    DJS   Original Programmer
\*****************************************************************************/

Declare function SQL_Delete, SQL_Format
Ans = ""
 
// List of key names and their values
Keys = "EVENT_ID":@VM:SQL_Format(Key, "STR")

// SCHED_DET_NG
If Ans EQ "" then
    Ans = SQL_Delete(Connection, "SCHED_DET_NG", Keys)
end

Return Ans
