//connect to database "Analysis" on "Lintilla" string strConn = STR_DB_CONN; string strQuery = STR_QUERY;
Object oConn; oConn = CreateObject("ADODB.Connection"); if ( !oConn ) return error_report("Fail to create ADODB.Connection object!"); oConn.Open(strConn);
Object oRecordset; oRecordset = CreateObject("ADODB.Recordset"); if ( !oRecordset ) return error_report("Fail to create ADODB.Recordset object!");
//open recordset oRecordset.CursorLocation = 3; //adUseClient, please refer to MSDN for details oRecordset.Open(strQuery, oConn, 1, 3); //adOpenKeyset, adLockOptimistic
int iRowBegin = 0, nRows = 8; //8 rows int iColBegin = 0, nCols = 9; //9 columns
//LAYWKSETRECORDSET_APPEND for appending new recordset; //LAYWKSETRECORDSET_REPLACE for replacing existing recordsets. int nOption = LAYWKSETRECORDSET_APPEND; //append.
Some errors occured when compiling this piece of code.
It seems that WriteRecordset is not defined or does not have matching prototype, LAYWKSETRECORDSET_APPEND and LAYWKSETRECORDSET_REPLACE are not defined.
Is anybody think that this feature is not present within this version, do i have to do an upgrade or are there hints and tricks to accomplish such opperations ?
Could you help me please?
Thanks,
Best regards.
1 L A T E S T R E P L I E S (Newest First)
Penn
Posted - 01/05/2011 : 03:45:07 AM Hi,
Yes, you are right. The version you are using does not include LAYWKSETRECORDSET_APPEND yet. Please update to Origin 8 SR6 from this page and then try again.