Compile function Copy_VISION_ORDER_Record_To_SQL(Connection, Key, Record)

/*****************************************************************************\
	Copies the given VISION_ORDER record to the MSSQL database.
	
	History
	-------
	08/06/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(2)
MatParse Record into Rec
					    
// List of key names and their values
Keys = "VISION_ORDER_NO":@VM:SQL_Format(Key, "STR")

// List of data fields and their values
DataFields  = "ORDER_NO":@VM:SQL_Format(Rec(1), "INT")

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

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

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

Return Ans
