Compile function Delete_REACT_RUN_Record_From_SQL(Connection, Key, Record)

/*****************************************************************************\
	Deletes the given REACT_RUN record from the MSSQL database.
	
	History
	-------
	09/21/2010    KRF   Original Programmer
\*****************************************************************************/

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

//-------------------------------------------------------------------------------------------------
// Multi-valued Fields

!! Delete records from MV tables first !!

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

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

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

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

Return Ans
