How do I escape a string coming from the user in BusinessOne? I have seen some examples (in the official samples!) that seem sensible to SQL injection:
SAPbobsCOM.Recordset RecSet = ( ( SAPbobsCOM.Recordset )( oCompany.GetBusinessObject( SAPbobsCOM.BoObjectTypes.BoRecordset ) ) );
string QryStr = "update [@VIDS] set U_RENTED = 'Y', U_CARDCODE = '" + CardStr + "' where Code = '" + MovieStr + "'";
RecSet.DoQuery( QryStr );
RecSet.DoQuery( QryStr );
Is there a way to avoid SQL injection with simple SQL queries (without stored procedures)?