Re: Connection string
От
Michael Meskes
Тема
Re: Connection string
Дата
Msg-id
20060811095816.GA28567@1
Ответ на
Re: Connection string (Harpreet Dhaliwal)
Список
Дерево обсуждения
Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string Michael Meskes <meskes@postgresql.org>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string Michael Meskes <meskes@postgresql.org>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string Michael Meskes <meskes@postgresql.org>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string Michael Meskes <meskes@postgresql.org>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string Michael Meskes <meskes@postgresql.org>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string Michael Meskes <meskes@postgresql.org>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string Bruce Momjian <bruce@momjian.us>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Richard Broersma Jr <rabroersma@yahoo.com>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Richard Broersma Jr <rabroersma@yahoo.com>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Richard Broersma Jr <rabroersma@yahoo.com>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Richard Broersma Jr <rabroersma@yahoo.com>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Michael Meskes <meskes@postgresql.org>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Michael Fuhr <mike@fuhr.org>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string "Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>
Re: Connection string Alvaro Herrera <alvherre@commandprompt.com>
On Thu, Aug 10, 2006 at 11:57:14AM -0400, Harpreet Dhaliwal wrote: > This is a simple code snippet that i've written to check if i can connect to > the postgres database server residing at IP 192.168.0.123. DB name is xyz > Also, user account jsb has the access to the database xyz. > ------------------------------------------------------------ > #include > > EXEC SQL INCLUDE sqlca I take it you did not copy the file verbatim because this seem to lack the ';'. > EXEC SQL CONNECT TO 'tcp:postgresql://192.168.0.123/xyz' USER jsb The correct syntax would be: EXEC SQL CONNECT TO tcp:postgresql://192.168.0.123/xyz USER jsb; This should work at least it does for me. :-) Michael -- Michael Meskes Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!
В списке pgsql-general по дате отправления