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.

FM9 Server can't execute SQL?

Featured Replies

  • Newbies

I have an FM9 solution hosted with FileMaker Server 9 Advanced on a Windows Server 2003 platform. As such, I set up an ODBC connection on both my dev box and server box to an internal Oracle database. The Oracle table I wish to connect to contains over 700K records, so ESS is very slow. I'd like to execute SQL queries instead.

The SQL queries I wrote on my dev box run correctly. When I connect to the server version of the FM database, the server's ODBC connection is not available, so the queries don't run at all.

Can FM9 Server not use the server box's ODBC setup? I'd rather not set up individual ODBC connections for the hundred or so users.

TIA

ken

ExecuteSQL is a client-based script step. Predating ESS by seven versions (it was introduced in FMP 4.1) it does not leverage the ODBC connection configured for ESS or the tables included in your database via ESS.

  • Author
  • Newbies

Corn, thanks for the reply.

However, I want to use ExecuteSQL, leveraging the server's ODBC connection, instead of using ESS. Unless I missed something completely, the current state of FM9Server can't let me do this?

I'm sorry if I wasn't clear in my response.

The ODBC configuration available to FileMaker Server is a function of ESS. It did not exist before FMS 9.0's support of ESS whereas the ExecuteSQL function predates ESS by several releases. FMI did not change ExecuteSQL to leverage the ODBC connection on server when they created the ESS feature.

To be clear, the FMS ODBC connection is strictly a part of ESS and functions strictly at the datasource level (i.e. tables and fields). It does not provide the capability to perform ad hoc SQL queries.

The ExecuteSQL script step, in contrast, executes on the client side (as do all scripts initiated by the client ) and therefore can only leverage the local ODBC connection.

  • Author
  • Newbies

I was afraid of that. Thanks, Corn.

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.