Re: ecpg: How to connect to host w. user:password? - Mailing list pgsql-general

From Lark
Subject Re: ecpg: How to connect to host w. user:password?
Date
Msg-id 9r1qbh$slc$1@news.tht.net
Whole thread Raw
List 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;

pgsql-general by date:

Previous
From: huz_mats@hotmail.com (Huzaifa)
Date:
Subject: need dsn less connection provider string
Next
From: Dado Feigenblatt
Date:
Subject: locking and web interfaces