26 lines
728 B
Plaintext
26 lines
728 B
Plaintext
Compile function Delete_TOOL_Record_From_SQL(Connection, Key, Record)
|
|
|
|
/*****************************************************************************\
|
|
Deletes the given TOOL 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 = "TOOL_ID":@VM:SQL_Format(Key, "STR")
|
|
|
|
//-------------------------------------------------------------------------------------------------
|
|
// Multi-valued Fields
|
|
|
|
// TOOL
|
|
If Ans EQ "" then
|
|
Ans = SQL_Delete(Connection, "TOOL", Keys)
|
|
end
|
|
|
|
Return Ans
|