Editing ODBC data sources
An ODBC data source lets a FileMaker file access data from external ODBC tables. You can view and update ODBC tables interactively in the
relationships graph in much the same way you view and update FileMaker
tables.
Important To work with ODBC data sources, you must:
1.
|
Choose File menu > Manage > External Data Sources.
|
4.
|
For Authentication, the default option is Prompt user for user name and password. Users must enter a user name and password the first time they access the table.
|
If you don’t want any user of this FileMaker file to be prompted, select Specify user name and password (applies to all users) and enter a user name and password. You can also create a calculation to determine user access to the external table. You cannot use variables or fields in these calculations. See
Specify Calculation dialog box for more information on setting up calculations.
If you work with shared database files that access ODBC data from Microsoft SQL Server and you want to enable ODBC data source single sign-on, select
Use Windows Authentication (Single Sign-on) and enter the
SPN (Service Principal Name). See
Enabling ODBC data source single sign-on (Windows only).
Note FileMaker encrypts passwords. However, encryption on external data sources depends on whether encryption is supported by the ODBC driver.
•
|
For Catalog name, enter a name. Otherwise, tables from all catalogs are listed.
|
•
|
For Schema name, enter a name. Otherwise, tables from all schemas are listed.
|
•
|
For Table name, enter a name to list only that table.
|
Note If you want to include other types, deselect all the
Filter by Type options.
After you have added an ODBC data source, you can work with ODBC tables in the relationships graph and on
layouts as you would other FileMaker tables. You can retrieve, add, update, and delete data in the ODBC table interactively, in real time.
1.
|
Choose File menu > Manage > Database.
|
2.
|
In the Relationships tab in the Manage Database dialog box, click .
|
Tip To identify whether a table in the relationships graph is a FileMaker table or from an ODBC data source, move the pointer over the arrow in the table header. You might want to add a color to ODBC tables in order to identify them more easily.
Columns from the ODBC table appear in the Fields tab. The field names appear in italics. You can remove fields if you do not want FileMaker Pro to display them within your solution. These columns are not removed from the external SQL data source table schema, only from the FileMaker Pro representation of that table’s schema. See
Updating data between FileMaker and ODBC data sources for more information.
•
|
On the Auto-Enter tab, you can auto-enter serial numbers when you create records, but not when you commit records. (The external database controls how records are committed.) When a lookup is to related data in an ODBC data source, copy next lower value and copy next higher value are disabled.
|
•
|
On the Validation tab, Unique value and Existing value are disabled. The Maximum number of characters allowed in a field is determined by the external data source.
|
•
|
The Storage tab is disabled.
|
•
|
When FileMaker Server hosts databases linked to ODBC data sources, FileMaker clients do not need to set up a DSN to access the external data source. However, the DSN must be set up on the machine running FileMaker Server.
|
•
|
Microsoft SQL Server: By default, DATETIME, DATETIME2, and SMALLDATETIME data from ODBC tables is imported as the timestamp field type. You can change the field type of a timestamp shadow field to either date or time, but the data must be structured in a specific manner. If the imported ODBC table contains timestamp data and you treat the timestamp field as a date field, the time portion must equal 12:00 AM (or midnight) for all records in the table. Likewise, if you import an ODBC table that contains timestamp data and you treat the timestamp field as a time field, the date portion must equal 1900-01-01 (or January 1, 1900) for all records in the table.
|