Показать сообщение отдельно
Старый 09.10.2007, 16:03   #2  
konopello is offline
konopello
SAP
SAP
 
628 / 76 (4) ++++
Регистрация: 08.11.2005
Адрес: Минск
если я правильно вас понял то вот
X++:
#define.channel("Optimum")
static void Optimum_ExportBalance(Args _args)
{
    TranslationChannel          translationChannel = TranslationChannel::find(#channel);
    CCADOConnection             connection = new CCADOConnection();
    CCADOCommand                command = new CCADOCommand();
    CCADORecordSet              recordSet;
    ;

    try
    {
        connection.open(translationChannel.ADOConnectionString);
        command.activeConnection(connection);
        command.commandText(strfmt("DMT_Set_Balance '3077', '%1', 50000, 70000", date2str(systemdateget(),213,2,2,2,2,4)));
        recordSet = command.execute();
    }
    catch(Exception::Error)
    {
    }
}
а вообще поищите поиском технология ADO уде неоднократно обсуждалась.