Dynamics AX 3.0 'da ODBC Insert-Update
Son olarak ODBC kullanarak Insert ve Update işlemlerine bakalım, Bu işlemin diğer yaptığımız işlemden çok bir farkı yok.
Static boolean ODBCInsertUpdate()
{
str strSQL;
ODBCConnector ODBCContent; // bir önceki makalede bulunan fonksiyon bulunduğu Class
Statement statementContent;
;
try {
strSQL=strfmt("INSERT INTO Table (fld1,fld2) VALUES ('%1','%2')",statement1,statement2);
statementContent=ODBCConnector::newODBCConnectionStatement();
statementContent.executeUpdate(strSQL);
statementContent.close();
return true;
}
catch (Exception::Error)
{
throw Exception::Error;
}
catch (Exception::Break)
{
throw Exception::Break;
}
catch (Exception::DDEerror)
{
throw Exception::DDEerror;
}
catch (Exception::Deadlock)
{
throw Exception::Error;
}
catch (Exception::Info)
{
throw Exception::Info;
}
catch (Exception::Internal)
{
throw Exception::Internal;
}
catch (Exception::Numeric)
{
throw Exception::Numeric;
}
catch (Exception::Sequence)
{
throw Exception::Sequence;
}
catch (Exception::Warning)
{
throw Exception::Warning;
}
}
2 yorum:
Gostei muito desse post e seu blog é muito interessante, vou passar por aqui sempre =) Depois dá uma passada lá no meu site, que é sobre o CresceNet, espero que goste. O endereço dele é http://www.provedorcrescenet.com . Um abraço.
I am curious to find out what blog system you're working with? I'm experiencing some
minor security problems with my latest site and I would
like to find something more safeguarded. Do you have any suggestions?
My website: cheap legal highs
Yorum Gönder