Vladimir,

Para buscar o erro correto com Oracle eu uso a função:
SqlGetError( p_hSql_Erro, w_n_Erro, w_s_TextErro )

Faça um teste.

Sds,
Erasmo

--
 

Erasmo Bispo de Oliveira Junior
Gerente de Pesquisa e Desenvolvimento

Softway - SoftComex Informatica Ltda.

Web: http://www.softcomex.com.br
Email:
[EMAIL PROTECTED]
Fone: (19) 3739-9361
Fax: (19) 3739-9240
Cel: (19) 9213-5572



Vladimir A de Souza wrote:
Olá pessoal. Faz um tempão que temos esse problema ao retornar o erro do sybase, então resolvi postar. O SqlGetErrorTextX retorna a descrição do erro cortada.
Ex:
A mensagem de erro

A column insert or update conflicts with a rule bound to the column. The command is aborted. The conflict occured in database 'contabil', table 'plano_contas', rule 'numero_positivo', column 'SALDO_ORCAM'.

 

Só aparece:

A column insert or update conflicts with a rule bound to the column. The command is aborted. The conflict occured in dat

O que fazemos?
 
Vladimir


Responder a