Compile function Delete_Test_Wafer_Prod_Record_From_SQL(Connection, Key, Record)

/*****************************************************************************\
	Deletes the given TEST_WAFER_PROD (to be renamed PRODUCT) record from the MSSQL database.
	
	History
	-------
	09/10/2025    DJS   Original Programmer
\*****************************************************************************/

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

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

!! Delete records from MV tables first !!

// Currently no multi-value (child) tables

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

Return Ans

