Re: ecpg: How to connect to host w. user:password?

From: Lark <andrei(dot)boulgakov(at)nsi(dot)co(dot)il>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ecpg: How to connect to host w. user:password?
Date: 2001-10-22 16:37:13
Message-ID: 9r1qbh$slc$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lark wrote:

> Hi!
> How can i connect to DB, that resides on another host with specific port
> as USER w. Password.
> EXEC SQL CONNECT TO ???? AS ??? Where to place Host:port, User:password?

Thank you for a help :)
I discovered it myself.

exec sql connect to testDB user andrei/mypassword;

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ian Harding 2001-10-22 16:43:27 Re: How to insert with a serial
Previous Message Ian Harding 2001-10-22 16:31:13 Dump Error...