Connection Object

Started by Sandeep Kumar Jakkarajuover 19 years ago3 messagesgeneral
Jump to latest
#1Sandeep Kumar Jakkaraju
sandeepkumar.jakkaraju@gmail.com

Hi All

I want to know specifically from the exception thrown by the "connection"
object when the connnection string is wrong..
whether it is due to wrong database name or wrong user name or wrong
password !!!

Is it possible ??

Thanx in advance

--
Sandeep Kumar Jakkaraju
WeBlog:
http://jakkarajus.blogspot.com

#2Harpreet Dhaliwal
harpreet.dhaliwal01@gmail.com
In reply to: Sandeep Kumar Jakkaraju (#1)
Re: Connection Object

http://www.postgresql.org/docs/8.1/interactive/ecpg-errors.html#AEN27672

printf("Error code is %d",SQLCODE)

I hope this helps

On 8/12/06, Sandeep Kumar Jakkaraju <sandeepkumar.jakkaraju@gmail.com>
wrote:

Show quoted text

Hi All

I want to know specifically from the exception thrown by the "connection"
object when the connnection string is wrong..
whether it is due to wrong database name or wrong user name or wrong
password !!!

Is it possible ??

Thanx in advance

--
Sandeep Kumar Jakkaraju
WeBlog:
http://jakkarajus.blogspot.com

#3Sandeep Kumar Jakkaraju
sandeepkumar.jakkaraju@gmail.com
In reply to: Harpreet Dhaliwal (#2)
Re: Connection Object

I am using libpqxx.. library .. i need errorcode from the connection object
in the libpqxx library...

On 8/12/06, Harpreet Dhaliwal <harpreet.dhaliwal01@gmail.com> wrote:

http://www.postgresql.org/docs/8.1/interactive/ecpg-errors.html#AEN27672

printf("Error code is %d",SQLCODE)

I hope this helps

On 8/12/06, Sandeep Kumar Jakkaraju <sandeepkumar.jakkaraju@gmail.com>
wrote:

Hi All

I want to know specifically from the exception thrown by the
"connection" object when the connnection string is wrong..
whether it is due to wrong database name or wrong user name or wrong
password !!!

Is it possible ??

Thanx in advance

--
Sandeep Kumar Jakkaraju
WeBlog:
http://jakkarajus.blogspot.com

--
Sandeep Kumar Jakkaraju
WeBlog:
http://jakkarajus.blogspot.com