Compile function Copy_MFC_LOC_Record_To_SQL(Connection, Key, Record)

/*****************************************************************************\
	Copies the given MFC_LOC record to the MSSQL database.
	
	History
	-------
	08/09/2010    KRF   Original Programmer
	04/21/2012    KRF   Dropped per David's Request, SQL_MFS Removed so this
	                    won't be called
\*****************************************************************************/

Declare function SQL_Write, SQL_Write_MV, SQL_Format
Ans = ""

// Parse record into a dimensioned array for speed
Dim Rec(3)
MatParse Record into Rec
					    
// List of key names and their values
Keys = "MFC_LOC":@VM:SQL_Format(Key, "STR")

// List of data fields and their values
DataFields  = "[DESC]":@VM:SQL_Format(Rec(1), "STR")

// Write the data to the SQL database
Ans = SQL_Write(Connection, "MFC_LOC", Keys, DataFields)

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

// MFC_LOC_GAS
If Ans EQ "" AND Rec(2) NE "" then
    
    // List of data fields and their values
    MvFields  = "GAS":@FM:SQL_Format(Rec(2), "STR")
    
    // Write the data to the SQL database
    Ans = SQL_Write_MV(Connection, "MFC_LOC_GAS", Keys, MvFields);
    
end

Return Ans
