Re: Why isn't ADOExpress throwing an exception on error?





Raise the error level in your RaiesError

What i don't understand is why the same errorlevel causes an exception to
throw in one case but not in the other.
My guess is the TadoConnection.Execute does not have its errors directed into
the Errors collection so all errors are surfaced.


or check the TadoConnection.Errors
collection for the error you are generating.

Ahhh...that's probably it. Kind of tedious to go change every piece of code
where we run a query though :(

--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.



Relevant Pages

  • Re: Getting SQL Server error
    ... I know that sql command has an error. ... if you want more you can always checks the Errors collection. ... When the error occurs, Delphi generates an exception ...
    (borland.public.delphi.database.ado)
  • Re: Closing recordset generates exception
    ... This routine should ... Just during test/development phase I ran ... into this exception and couldn't explain this 'Close exeption' ... Have you examined the errors collection off your Conn object? ...
    (microsoft.public.data.ado)
  • Re: Error Question
    ... i dont know how to check the type of exception in my ... messageformat() Method ... Errors Collection in SqlException ...
    (microsoft.public.dotnet.languages.csharp)
  • Error Question
    ... i dont know how to check the type of exception in my ... messageformat() Method ... Errors Collection in SqlException ...
    (microsoft.public.dotnet.languages.csharp)