Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Executing SQL Statements on a FM database

Featured Replies

I want to apologize in advance for anything that may be painfully obvious to most FM users. My question is this: Is it possible to execute an SQL statement on a FM 5.5 database from within the database. Here is my situation, I have been thrust into the DBA position with out much experience in FM. I am finding creating reports quite difficult. I do have experience in some other RDBMS like mySQL and Access. I think that if I could just execute SQL statements on the FM database I could generate the reports I need and shorten my learning curve. Is this possible?

It certainly is possible to execute SQL statements from within Filemaker Pro v 5.5. Basic info is in the "Getting Started" guide p31, more in the on-line Help.

Say you want to create new records in FM Pro and then send the values to an external ODBC compliant table. You first have to create a calculated field which contains the SQL statement incorporating values for each record. This is just a concatenation of the words and field names which make up the INSERT statement.

The statement is effected by creating a script which contains the step "Execute SQL". The dialogs let you specify the Datasource and the field in which the SQL statement is contained.

Hope this helps, but I personally think that it's better in the long run to get the hang of creating reports in FMPro.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.