pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas <maps.on@gmx.net>
To: pgsql-odbc@postgresql.org
Subject: Re: Very basic question from a beginner
Date: Sun, 08 Apr 2012 20:57:27 +0200
Message-ID: <4F81DF97.2080200@gmx.net> (raw)
In-Reply-To: <4F819A9E.1020801@numericable.fr>
References: <4F819A9E.1020801@numericable.fr>

Am 08.04.2012 16:03, schrieb Jean MAURICE:
>
> I am very new to PostGreSql and ODBC but an 'expert' in Visual Foxpro. 
> I wanted to try VFP as a client of PostGres. My laptop is under W7-64. 
> I 'installed' the ODBC driver via Stack Builder. All things seemed to 
> work well but nothing appears in th ODBC Sources Manager (I apologize 
> I must guess the english names from the french ones ...).
>
> What have I missed ?

As Adrian explained you would see defined Datasources (DSN) in the 
Source Manager.
In such a DSN is all the information needed to reach a database.
So you create a DSN "my data" and describe there what driver to use, 
host-address, db-name, user, password ...

Later in VFP you should be able to select one of the defined DSNs and 
VFP knows all neccesary details.

BTW there are 3 types of DSN.
File based ... there is a textfile somewhere that holds the informations.
System DSN ... the admin defines a DSN that all users of the system can 
access.
User DSN ... the user defines a DSN that only he himself can access.

Probaply you might be interested to figure out how you can access the 
db-host without a pre defined DSN.
You can stuff all the details into a connection string and use this 
instead of a DSN.
Basically that should be the same as what the DSN-Manager is doing for you.
The advantage is that you don't need access to the DSN-Manager on the 
client system like when you give someone else an application. That way 
he doesn't have to create a DSN or you don't need some fancy installer 
that does it for him.




view thread (4+ messages)  latest in thread

Message-ID: <4F81DF97.2080200@gmx.net>
Permalink:  ../4F81DF97.2080200@gmx.net/
Also on:    postgresql.org/message-id/4F81DF97.2080200@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: maps.on@gmx.net
  Subject: Re: Very basic question from a beginner
  In-Reply-To: <4F81DF97.2080200@gmx.net>
  References: <4F819A9E.1020801@numericable.fr> <4F81DF97.2080200@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox