2 posts in this topic
MS SQL in Azure and ESS
I am trying to connect to SQL database hosted in MS SQL server, located in Azure.Â
- Win 2012 Server, FMS 13 Advanced,
- ODBC Driver:Â ODBC Driver 11 for SQL Server 11.0.2270.0 (64-bit)
- FMSA 13, tried MAC & WIN
Setting up System DNS without problems, test completedÂ succesfully
Added this DNS as external DataSource in my DB.
When trying to add TO to Relationships graph , get the message:Â
SQL Database & All its Tables and Views shows in "Specify Table" Dialog
"This action cannot be performed because the required table is missing"
I though that the credentials for SQL Database does not allow to see tables/ edit data. But the SQL database guy said that I have all rights there. At the moment, I can't check it
I am new to MS SQL connection, but done quite a lot work with MySQL databases.Â
I would be happy to get some hints what to do. The database guy in SQL side is not very helpful.Â
Connection problems between MySQL and FM databases
I have trying to combine data from a MySQL source with my local FM database using a shadow table with ESS connector. Basically I have done a Point Of Sale (POS) that gets the data from a MySQL database (it contains the information about the products, prices, stock, etc). I have two problems:
1. I have done an script that connect to this shadow table when I insert a barcode for a product and extract the information about that product. If I open the FM solution and initially run the script, the process is too slow but if I go firstly to the shadow table and then I run again the script, in that case the process is faster. I have solve this problem using and script that goes briefly to the shadow table (when I open the application) before returns to the main layout. Is there other alternative more elegant?
2. Certain products are duplicates in the database and have different barcodes. If I insert one of these barcodes, a floating panel is shown, an script using ExecuteSQL query is run to show only this products (from shadow table). To do this query, I need to go to the shadow table and do a search in Find Mode and then run again the ExecuteSQL query.
I think that both problems are related and I suppose that I need to optimize the connection to MySQL shadow table. Could anyone help me to enhance it? Do I need to include any other step in the scripts to establish or maintain the connection to the MySQL database?
Thank you very much,
Testing ESS availability in a Server Scheduled Script
By Max Heller
Using Filemaker 11 Server.
I have a server script that is going to several ess layouts based on ORACLE views over ODBC, and exporting the data to excel files in the Documents Folder on the server. A separate database has a scheduled server script to import the data into local Filemaker tables that mirror the ORACLE structure.
This works great when the ORACLE server is online, but when it goes offline (usually without notice), the script just hangs (it eventually times out at the time limit I have set on the server).
On the client I can do an Open File script step and check for an error before going to the ESS layout, but that script step is not supported on the Server. Is there some other way to test for availability before going to the layout to prevent it from hanging?
Renaming ESS fields
Does anyone have any tips for renaming fields that are connected through ESS?
According to the ESS tech brief, it seems like this should be possible without an issue:
So if I'm just renaming the field, the unique key should remain the same, right? When I tried it and synced the tables again, the old field was changed to type "Unknown" and the new name was added as a separate field? Is there any nice way to do this and keep field linkings in scripts and layouts?
(Details: The files are hosted by FMS13 on Mac, connected through ActualODBC to MySQL)
Foreign key field not updating relationship with ESS
My students are developing a project in Filemaker using the separation model. The FM data file connects to a MySQL database.
I noticed that when updating a foreign key value on the Presentation layer, the view of the value on the related table does not update. Like if the relationship didn't updated.
I have a "buildings" table and a "building_types" table. There is a field "buildings::fk_building_type_id" which is related to "building_types::id". I am using a layout attached to BLD__BUILDINGS in the presentation layer. In the layer, there are two fields "BLD__BUILDINGS::fk_building_type_id" and "bld_BUILDINGTYPES::name". When I change the "fk" the "name" does not update directly. I must commit the record. Doing so in the data file, the update is instantaneous. What is the reason for this behaviour?
Thanks for helping