Pergunta

Eu já vi isso em algum lugar há algum tempo atrás, mas não consegui encontrar agora.

Lembro-me de que um dos eventos de erro em algum componente (TsqlDataset, TDataSetProvider, TClientDataSet ou então) me daria a mensagem de erro, conforme retornado pelo próprio servidor de banco de dados, mas não consigo recordar.

Alguém sabe o que estou falando?

Agradecemos antecipadamente.

Foi útil?

Solução

TClientDataSet.OnReconcileError contains a parameter of type EReconcileError which includes the error message, context and code. This data contains the message from the database server.

Outras dicas

Of course EReconcileError only helps if that is the particular type of database error you have. For all errors first look at the E.Messaage string, which gives you a description of the problem. Not always the same as the exact server text i think - it dpends also which database driver you are using - I am more familiar with the TMySQLConnection, but it's still a DBExpress driver... Chris

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top