Sergey, You need to SET ESCAPE OFF. Who the ....... thought of that! That will stop the GUI from popping it's ugly head in a VFP COM SQLExec() call.
__Stephen
>Stephen,
>
>What kind of allert exactly?
>
>>Thanks Serg, but it's not an error. The same code run through a class-less PRG runs fine. It's not an error, but an alert from VFP that data is comming. I'm sure it's a legacy from the PII 233 days.
>>
>>__Stephen
>>
>>>Try to supress ODBC error dialog also and use AERROR() to retrieve the error info.
= (SQLSETPROP(0,'DispWarnings',.F.)
>>>