How to get the real postgreql error from visual basic

Поиск
Список
Период
Сортировка
От dfx
Тема How to get the real postgreql error from visual basic
Дата
Msg-id 2EB96675DFFD4D2E9CD8F82CC414C73C@athlon
обсуждение исходный текст
Ответы R: How to get the real postgreql error from visual basic  ("Paolo Saudin" <paolo@ecometer.it>)
Список pgsql-general
Dear Sirs,

when I execute a function that returns an error, visual basic shows always
the same error code ( -214767259) but I would like to know the real postgres
code of the error.

The visual basic code that I use is the following:

Dim Cmd As new ADODB.Command
Cmd.CommandText = "delete from <tablename> where id=<some_number>;"
Cmd.ActiveConnection = mvarConnection
Cmd.Execute

Whichever error appens the visual basic Err object returns the same number.


What I have to do?

Any suggestion will be appreciated.

Domenico


В списке pgsql-general по дате отправления:

Предыдущее
От: aravind chandu
Дата:
Сообщение: Getting data from Xml to Postgresql database
Следующее
От: "Andrej Ricnik-Bay"
Дата:
Сообщение: Re: Problems Restarting PostgreSQL Daemon