>Marc,
>Try:
>
>SQLSetProp(0, 'DispLogin', 3)
>SQLSetProp(0, 'DispWarnings', .f.)
>
>HTH
>>In my application, I use the command SqlStringConnect() to access
>>a SQL Server database. However, when the connection failed, I get
>>a window to enter UserId and Password. Is it possible to NOT display
>>that window?
FYI, DispWarnings only has an effect on the information returned in AError. If it is set to .T. and warnings occur on SQL Server along with at least one error (i.e. severity level 11+) then the warnings will also be returned with AError(). If set to .F., only the error will be returned.
If warnings occur with no error, then nothing will be returned by AError() no matter what it is set to.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao