Difference between revisions of "Setting up a connection to the e-Ecology database"
(→Connecting to the FlySafe database via Access or other relational database programs) |
(→General Information) |
||
Line 15: | Line 15: | ||
Resticted flysafe server information | Resticted flysafe server information | ||
− | server : services. | + | server : services.e-ecology.sara.nl |
port : 5432 | port : 5432 | ||
ssl : required | ssl : required | ||
Line 21: | Line 21: | ||
The public server is at | The public server is at | ||
− | server : public. | + | server : public.e-ecology.sara.nl |
port : 5432 | port : 5432 | ||
ssl : required | ssl : required | ||
Line 27: | Line 27: | ||
To connect to the database via PGAdmin III the following information should be filled in when setting up a new connection: | To connect to the database via PGAdmin III the following information should be filled in when setting up a new connection: | ||
'''Under the properties tab''' | '''Under the properties tab''' | ||
− | name: | + | name: services_e-Ecology |
− | host: services. | + | host: services.e-ecology.sara.nl |
port : 5432 | port : 5432 | ||
− | Maintenance DB: | + | Maintenance DB: eecology |
Username: <your user name> | Username: <your user name> | ||
Password: <your password> | Password: <your password> | ||
Line 37: | Line 37: | ||
SSL: required | SSL: required | ||
− | The tracking data can be found in schema '''gps'''. However these instructions can be followed for any of the data included in the | + | The tracking data can be found in schema '''gps'''. However these instructions can be followed for any of the data included in the e-ecology database. |
=Setting up an ODBC connection= | =Setting up an ODBC connection= |
Revision as of 17:21, 28 July 2014
Contents
Connecting to the FlySafe database via Access or other relational database programs
Judy Shamoun-Baranes / Bart Heupers Last updated: July 28, 2014
General Information
The FlySafe database is a spatial postgreSQL ([1]).
PGAdmin III can be used to browse and query data. If you use pgadmin you do not need to set up an ODBC connection.
the database can also be called from other programs by installing an ODBC driver for postgreSQL and establishing a "User Data Source" [2]
In order to access the database your IP address must be sent to Lykle Voort (from SARA) who will provide a user name and password. For organizations an IP range can also be given.
Resticted flysafe server information
server : services.e-ecology.sara.nl port : 5432 ssl : required
The public server is at
server : public.e-ecology.sara.nl port : 5432 ssl : required
To connect to the database via PGAdmin III the following information should be filled in when setting up a new connection:
Under the properties tab name: services_e-Ecology host: services.e-ecology.sara.nl port : 5432 Maintenance DB: eecology Username: <your user name> Password: <your password> Under the SSL tab SSL: required
The tracking data can be found in schema gps. However these instructions can be followed for any of the data included in the e-ecology database.
Setting up an ODBC connection
ODBC (Open Database connectivity) is a standard method of sharing data between databases and other programs. ODBC drivers use SQL to gain access to data from sources outside the program. Therefore, in order to connect between your database and other programs you must set up an ODBC connection. Step 1: Download and install an ODBC driver for postgreSQL. [3] Step 2: Set up ODBC connection
Do the following:
- go to start | Control panel | Administrative tools | Data sources (ODBC)
- go to User DSN (first tab in Data sources)
- click ADD
- in window create new data source select PostgreSQL ANSI click FINISH
- The ODBC Driver setup window opens. Data source name: give your data source a name (eg GPS). Keep it simple, easily identifiable, this is the name you will use to identify your database from other applications, this will be the ODBC driver name.
- In the same window fill in the following information: database flysafe, Server services.flysafe.sara.nl or public.flysafe.sara.nl, User Name your user name, SSL Mode require, Port 5432, Password your password. When the window is completed click SAVE
- Back in the User DSN window you should now see your ODBC driver you just named, click OK
After completing these steps many other programs will now recognize your database and be able to communicate with it
Connecting to Access
You can now connect to the database via access. You have two options. One is to import the data, once this is done your database is not automatically updated but does not require a link to the database.
The second option (described below) is to create a dynamic link to the database (you must be connected to the network) in this case you are always viewing data that is in the actual SARA database.
- Open a new database in Access
- go to file | Get external data | Link tables
- in files of type select ODBC databases
- in select data source click on tab Machine Data Source
- select the data source name you created when setting up the ODBC connection (eg GPS) click OK
- Select the tables you want to import click OK
You now have access to your selected tables in the database. Have fun.
Original document Media:Connect_flysafe.doc