added LSL2 stored procedures
This commit is contained in:
22
LSL2/STPROC/DELETE_NCR_RECORD_FROM_SQL.txt
Normal file
22
LSL2/STPROC/DELETE_NCR_RECORD_FROM_SQL.txt
Normal file
@ -0,0 +1,22 @@
|
||||
Compile function Delete_NCR_Record_From_SQL(Connection, Key, Record)
|
||||
|
||||
/*****************************************************************************\
|
||||
Deletes the given NCR 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 = "SEQ":@VM:SQL_Format(Key, "INT")
|
||||
|
||||
// NCR
|
||||
If Ans EQ "" then
|
||||
Ans = SQL_Delete(Connection, "NCR", Keys)
|
||||
end
|
||||
|
||||
Return Ans
|
Reference in New Issue
Block a user