![]() |
Next Page |
| Contents > Accessing external data sources > Querying an ODBC data source from FileMaker Pro |
|
|
| Querying an ODBC data source from FileMaker Pro |
| After configuring an ODBC client driver, you can interact with records, import records into an existing FileMaker Pro database file, or create a new FileMaker Pro database file from any ODBC data source (such as Oracle or Microsoft Access databases). |
| Important See Connecting to data sources for information on how you can access and work with ODBC data sources without writing SQL queries. |
| You can access your ODBC data source through the File menu, with the Import Records script step, or with the Execute SQL script step. |
| All applications that support ODBC recognize a basic subset of SQL (Structured Query Language) statements. SQL is passed through the ODBC interface to the data source, performing queries such as SELECT first_name, last_name FROM customers WHERE city='Paris' and making updates such as the creation of a new record with INSERT INTO customers (first_name, last_name) VALUES ('Jane','Smith'). |
| To query an ODBC data source from FileMaker Pro: |
| 1. | In FileMaker Pro, do one of the following: |
|
|
| 2. | Choose your data source and click Continue. |
|
|
Most server-based ODBC drivers require the data source to be open, but the requirement varies depending on the driver. |
| 3. | Enter the user name and password (if any) for the data source you chose. |
|
|
To skip this dialog box in the future, select Save user name and password (this option is only available if you're importing into an existing FileMaker Pro file). |
| 4. | Click OK. |
|
|
The FileMaker Pro SQL Query builder dialog box appears. |
| 5. | Construct your query. See Constructing an SQL query for importing via ODBC for details. |
|
|
You can execute the query immediately, or copy and paste it into a field for later use. Use the Import Records or Execute SQL script step to execute a query stored in a field. See Storing an SQL query in a field for details. |
| 6. | Click Execute. |
|
|
| Related topics |
| Using ODBC and JDBC with FileMaker Pro |
| Configuring an ODBC client driver |
| Executing SQL to interact with data sources via ODBC |
| Automating ODBC import using the Import Records script step |
|
|
| Contents > Accessing external data sources > Querying an ODBC data source from FileMaker Pro | Next Page |