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.

ESS / SQL Query Structure

Featured Replies

Has anyone run across FMP/FMS creating odd SQL Select statements when using ESS via FMS?

Here's a quick version of what I'm doing:

Filemaker Server 9.0.3.325 (Windows Server 2003)

System DNS created using default SQL driver

Filemaker Advanced 9.0v3 (Windows XP)

I'm trying to use invoice number in both tables to match and create a relationship. The relationship works, but is very slow and the SQL statements are not as simple as they could be.

Simple SQL Example:

SELECT Field001, Field002, InvoiceNo

FROM [sql_Table]

WHERE (InvoiceNo = '12345678')

Here's what FM is creating:

SELECT Field001,InvoiceNo,Field002

FROM [sql_Table]

WHERE (Field001=N'ABCD123' AND Field002=1 AND InvoiceNo=N'12345678')

What's strange is Field001 and Field002 aren't references anywhere in the FMP shadow table or the relationship.

One thing I can say is Field001 & Field002 are "Key" fields in the SQL table.

I called FMP tech support and was told I cannot edit the SQL statement when using ESS and a server based DSN.

I'm hoping someone else has run across this and maybe has another angle on it.

Any input would be very helpful.

Thanks,

Jon

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.