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

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

From
Lark
Date:
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;