ODBC error and concurrent connections question

ODBC error and concurrent connections question

am 12.12.2005 10:12:54 von Francesco Lilley

This is a multi-part message in MIME format.

------=_NextPart_000_005A_01C5FF04.9E0D7000
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_005B_01C5FF04.9E0D7000"

------=_NextPart_001_005B_01C5FF04.9E0D7000
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello everyone!
I've just installed postgres 8.1 on my pc whcih runs Windows 2000 =
Professional.
But i have a problem: i've created a Test table, and then installed and =
created the Odbc on another pc different from the pc on which i =
installed the Postgres Server.
I created a C-like program and the first time it was all ok, but after i =
can't connect to the machine through Odbc, so i create new odbc, but =
nothing, now i'm not able to connect to the sever. The program returns =
me an ODBC error! Why? It's very strange!

I've installed Postgres because i ha ve the necessity to have a Db able =
to manage multiple concurrent connections, but i'm new and i don't know =
how to program and set the Postgres DB in order to do this. Ehat i have =
to do in order to have automatic serialization with concurrent =
connections?

Please Help me!!
Thank you very much in advance!!
Francesco.



Dott. FRANCESCO LILLEY
Ufficio Tecnico
BIESSE SERVIZI s.r.l.
P.za Garibaldi, 2
14049 Nizza Monferrato (AT)
Tel +39 0141 793233
Fax +39 0141 721676
www.gruppobiesse.it
E.mail f.lilley@gruppobiesse.it=20

Informativa ai sensi del Decr.Lgs Privacy n.196/2003
I dati in nostro possesso vengono impiegati per attivit=E0 di marketing =
e supporto tecnico nei termini previsti dalla normativa vigente. In ogni =
momento l'interessato potr=E0 avvalersi dei diritti e nelle modalit=E0 =
previste della Legge.
Il titolare del trattamento =E8 la BIESSE SISTEMI SPA, con sede in =
Grugliasco, Strada del Gerbido 49, tel. 0114088811 - =
info@gruppobiesse.it
Disclaimer
Quanto sopra e' espressione del mittente.
La societ=E0 BIESSE SISTEMI SPA non si fa carico di omissioni o errori =
dovuti alla trasmissione via Internet. Le informazioni contenute nel =
presente messaggio sono destinate esclusivamente al/ai destinatario/i in =
esso indicato/i.
Qualora riceviate il presente messaggio per errore, vi preghiamo di =
voler cortesemente darcene notizia via e-mail ( info@gruppobiesse.it) e =
di provvedere ad eliminare il messaggio ricevuto erroneamente, essendo =
ogni utilizzo, divulgazione, distribuzione o copia dello stesso vietata =
dalla Legge.

------=_NextPart_001_005B_01C5FF04.9E0D7000
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



charset=3Diso-8859-1">




Hello everyone!

I've just installed postgres 8.1 on my =
pc whcih=20
runs Windows 2000 Professional.

But i have a problem: i've created =
a  Test=20
table, and then installed and created the Odbc on another pc different =
from the=20
pc on which i installed the Postgres Server.

I created a C-like program and the =
first time it=20
was all ok, but after i can't connect to the machine through Odbc, so i =
create=20
new odbc, but nothing, now i'm not able to connect to the sever. The =
program=20
returns me an ODBC error! Why? It's very strange!

 

I've installed Postgres because i ha ve =
the=20
necessity to have a Db able to manage multiple concurrent connections, =
but i'm=20
new and i don't know how to program and set the Postgres DB in order to =
do this.=20
Ehat i have to do in order to have automatic serialization with =
concurrent=20
connections?

 

Please Help me!!

Thank you very much in =
advance!!

Francesco.

 


3D"" src=3D"cid:005901c5fefc$3c490800$1d00a8c0@SEGRCOMM">


Dott. FRANCESCO LILLEY
Ufficio=20
Tecnico

BIESSE SERVIZI s.r.l.
P.za Garibaldi, =
2
14049=20
Nizza Monferrato (AT)
Tel  +39 0141 793233
Fax +39 0141=20
721676
size=3D2>www.gruppobiesse.it
E.mail =
href=3D"mailto:f.lilley@gruppobiesse.it"> size=3D2>f.lilley@gruppobiesse.it



Informativa ai sensi del Decr.Lgs =
Privacy=20
n.196/2003
I dati in nostro possesso vengono impiegati per attivit=E0 =
di=20
marketing e supporto tecnico nei termini previsti dalla normativa =
vigente. In=20
ogni momento l=92interessato potr=E0 avvalersi dei diritti e nelle =
modalit=E0 previste=20
della Legge.
Il titolare del trattamento =E8 la BIESSE SISTEMI SPA, =
con sede in=20
Grugliasco, Strada del Gerbido 49, tel. 0114088811 =96
href=3D"mailto:info@gruppobiesse.it"> size=3D1>info@gruppobiesse.it
face=3DTahoma>Disclaimer
Quanto sopra e' espressione del =
mittente.
La=20
societ=E0 BIESSE SISTEMI SPA non si fa carico di omissioni o errori =
dovuti alla=20
trasmissione via Internet. Le informazioni contenute nel presente =
messaggio sono=20
destinate esclusivamente al/ai destinatario/i in esso =
indicato/i.
Qualora=20
riceviate il presente messaggio per errore, vi preghiamo di voler =
cortesemente=20
darcene notizia via e-mail (
href=3D"mailto:info@gruppobiesse.it"> size=3D1>info@gruppobiesse.it size=3D1>) e di=20
provvedere ad eliminare il messaggio ricevuto erroneamente, essendo ogni =

utilizzo, divulgazione, distribuzione o copia dello stesso vietata dalla =

Legge.



------=_NextPart_001_005B_01C5FF04.9E0D7000--

------=_NextPart_000_005A_01C5FF04.9E0D7000
Content-Type: image/jpeg;
name="biesse.jpg"
Content-Transfer-Encoding: base64
Content-ID: <005901c5fefc$3c490800$1d00a8c0@SEGRCOMM>

/9j/4AAQSkZJRgABAQEAYABgAAD//gAcU29mdHdhcmU6IE1pY3Jvc29mdCBP ZmZpY2X/2wBDAAoH
BwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEEx NDk7Pj4+JS5ESUM8
SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7 Ozs7Ozs7Ozs7Ozs7
Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCABFAD0DASIAAhEBAxEB/8QAGwAAAgMB AQEAAAAAAAAAAAAA
AAYDBAUHAgH/xAA9EAACAQMCAgQKCQIHAAAAAAABAgMABBEFEiFBExQxUQYV MjNVdIGSstEiIzRC
YXFyobEmszZSU2KRk6L/xAAWAQEBAQAAAAAAAAAAAAAAAAAAAQL/xAAWEQEB AQAAAAAAAAAAAAAA
AAAAARH/3QAEACj/2gAMAwEAAhEDEQA/AOtO89xcSRQyCJIsBn2hiWxnAzw7 CKiCyNMYV1gmUdqB
Y9w9mK92oY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YGM+VjOKbbZS0moICVYy8OOCMouDWf4o1Qx7ev7WCIAwdu BBz7c8M1BgJZeEwi
aKXR7a4jeONCspBBCZwfK7eNeU0zX0MijQLMW8qhZLdSAj4OQfKyDx7aYPEe pGF18aSbyFVTvbHA
5JP41bjsL0WN3C919bMxMcm8nYDV0wr9S8JMdCdFtzZ9H0fVNw2YznOc5znn X1bPwljOyPRLVbbo
jELcsCgUnJ+9kkmt6bSNUYMkepNsJXaSzbhtGO0d/OvcukX/AEoaC+ZF3sSp kY5BOQPZTTGZ4O6b
qMGsie60i2sY1hZd0GBuJI7eJ7qYrHzl56wfhWqmnade210ks92ZEEIjKbyf pf5uNWrDy7s8jcHH
uqKipJrVZZOlSR4ZMY3oRxH4g8DUfU7n0jN7ifKiigOp3PpGb3E+VHU7n0jN 7ifKiigOp3PpGb3E
+VHU7n0jN7ifKiigOpzng+oTleYAQfuBViKJIIljjXaq9goooP/Z

------=_NextPart_000_005A_01C5FF04.9E0D7000--

Re: ODBC error and concurrent connections question

am 12.12.2005 13:10:59 von Ludek Finstrle

> But i have a problem: i've created a Test table, and then installed
> and created the Odbc on another pc different from the pc on which
> i installed the Postgres Server.
> I created a C-like program and the first time it was all ok, but
> after i can't connect to the machine through Odbc, so i create new

After what you can't connect? I think this is postgresql related question.
Can you connect server through psql command line client?
If you can't connect with psql then the problem is on server side.

Could you ping to the server? Does ODBC and C program work on server?
Do you have well filled datasource parameters like server name,
server port, SSL mode, database name, user name and password?

> odbc, but nothing, now i'm not able to connect to the sever.
> The program returns me an ODBC error! Why? It's very strange!

What error do you get? We're not crystal gazers ...
Could you post mylog output?

> Ehat i have to do in order to have automatic serialization with
> concurrent connections?

Isn't it again postgresql related question? I think there is pgsql-novice
mailing list for these question. It isn't ODBC related.
You can try study transaction isolation ... It's well documented on
www.postgresql.org/docs/

Regards,

Luf

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org