Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Executing SQL Server stored procedures


This topic is 6159 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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...
Posted

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.

  • Newbies
Posted

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.

Posted

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?

This topic is 6159 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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