Jump to content
Sign in to follow this  
enelson493

Executing SQL Statements on a FM database

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    aztrix55 
×
×
  • Create New...

Important Information

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