added LSL2 stored procedures
This commit is contained in:
21
LSL2/STPROC/DELETE_CALIBRATION_RECORD_FROM_SQL.txt
Normal file
21
LSL2/STPROC/DELETE_CALIBRATION_RECORD_FROM_SQL.txt
Normal file
@ -0,0 +1,21 @@
|
||||
Compile function Delete_CALIBRATION_Record_From_SQL(Connection, Key, Record)
|
||||
|
||||
/*****************************************************************************\
|
||||
Deletes the given CALIBRATION 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 = "CL_NO" :@VM:SQL_Format(Field(Key, "*", 1), "INT"):@FM
|
||||
Keys := "CAL_DT":@VM:SQL_Format(Field(Key, "*", 2), "DATE")
|
||||
|
||||
// Delete the record from the SQL database
|
||||
Ans = SQL_Delete(Connection, "CALIBRATION", Keys);
|
||||
|
||||
Return Ans
|
Reference in New Issue
Block a user