Problems with postgresql connection

H

halex2000

Hi, I'm trying to connect to a Postgres DB from a c# app, but this is the
first time with ODBC and am experimenting some troubles. First of all, do I
need to manually execute the drivers, or do they start with the server (the
file I downloaded and installed is the latest installer package)?
I don't know what string to use. I'm using the following:

"DSN={PosgreSQL};UID=postgres;SERVER=127.0.0.1;Port=5432;Database=artisti"

When I call Open() I get an exception saying that the name of the data
origin has not be found and the default driver name not specified (roughly
translated from italian...). Can someone help me?
Thank you,
Alessandro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top