Unix Technical Forum

Connection Object

This is a discussion on Connection Object within the Pgsql General forums, part of the PostgreSQL category; --> Hi All I want to know specifically from the exception thrown by the "connection" object when the connnection string ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 11:59 AM
Sandeep Kumar Jakkaraju
 
Posts: n/a
Default Connection Object

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 12:00 PM
Harpreet Dhaliwal
 
Posts: n/a
Default Re: Connection Object

http://www.postgresql.org/docs/8.1/i....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
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 12:00 PM
Sandeep Kumar Jakkaraju
 
Posts: n/a
Default 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/i....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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:55 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com