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 Server stored procedures

Featured Replies

  • Newbies

I'm looking for a way to execute SQLServer stored procedures without requiring a DSN setup on every client machine. We have about 80 clients, with some Mac, some Windows. The solution I'm building is largely driven via stored procedures within SQLServer, using FileMaker as the interface. Currently I'm using the ExecuteSQL script step to execute the stored procedures, but that will require the extra step of ODBC drivers and a DSN on each machine. Using FM Server Advanced (or other means), is there any way to use the server's DSN to execute the procedures? Any other suggestions?

  • 4 weeks later...

Without DSN you can't really run a stored procedure via Execute SQL. You could however create a Trigger in your database that will run a stored procedure based on a certain criteria. Trigger is connected to an SQL table so you could setup an UPDATE trigger that will monitor a field in the table for a certain value and then execute the stored procedure. You won't be able to get the results of the stored procedure back to filemaker but you could have the stored procedure write to another table that can be shadowed by filemaker. It could be a lot of work if your entire solutions depends on stored procedures.

  • Author
  • Newbies

I tried that route, and got an interesting ODBC error message regarding "dissallowing triggers that update other files". The error only happens when creating a new record from within FileMaker. The trigger works fine from within the MS Query Analyzer. At this point, I have conceded that we will need to set up DSNs on each client workstation.

Not sure what this means. Can you post the exact message and error code. Might be ODBC settings or security settings of the database. Did you try the test using admin account?

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.