Link to home
Start Free TrialLog in
Avatar of pcarrier
pcarrier

asked on

Accessing FileMaker data with FileMaker server 7.0

hi,

I can set up ODBC when using FileMaker pro and everything is fine.  With FileMaker Server running, I cannot use ODBC anymore; unless I get FileMaker Advanced Server apparently.  

is there any way (ODBC or other) to access FileMaker data when using FileMaker Server 7.0?

thanks.
Avatar of billmercer
billmercer

If you mean pulling data directly from the FileMaker server itself, you can't.  

If you use your local copy of FileMaker to open a file hosted on a separate FM server, can you create an ODBC connection to the application? I know this works with earlier versions, but I have not tried it with FM 7 yet. I'll have to give it a try.

If that doesn't work anymore, you can still use the FileMaker client to share data via the web. You can import data from an XML or HTML report presented by FileMaker's web publishing features.

Avatar of pcarrier

ASKER

hi billmercer,

I have tried using the local copy of FileMaker to make an ODBC connection to the hosted file; didn't work.

I will try to make an export via the web.

thanks.
Avatar of Member_2_908359
According to filemaker, with the advanced server v7 should be able to make a direct ODBC connection to the server itself, as long as web access.
http://www.filemaker.com/products/fmsa_overview.html
(not tested, there is no trial version of the advanced server, only normal server)
While it's disappointing to hear that FileMaker has removed this ability, it's not that surprising. They've done similar things in the past, removing popular features and making you pay extra to get them back.

One advantage to using web publishing is it's usually pretty fast. Although FileMaker 7's ODBC is a lot better than previous versions, from what I've seen it's still not as fast as using web publishing.

Lesouef, he doesn't want to pay for FM Server Advanced, that's why I suggested the web publishing approach.
Can you give me a bit more information on the web publishing idea?
Bill,
no problem mate, I just read his question too quick!

Pcarrier,
web stuff is the same as using the web companion on FM6 except that the web companion is now on the server.
That's definitly different from ODBC, you have to generate the queries as URL's, and you get XML data in return. So you must be fluent in these languages to use it, not the easiest compared to ODBC!
From the FileMaker manual:

"Note  Instant Web Publishing is not supported in the basic FileMaker Server product."

It's the same idea as ODBC.  You have it on FileMaker Pro; you lose it with FileMaker Server; and you get it back with FileMaker Advanced Server.

My solution right now is to make export script in FM and use ActiveX Automation to run them and then get the data to use it.

Any other idea?
Well after doing a quick experiment, it does appear that FileMaker ODBC does NOT work when connected to an FMServer hosted database.

Greed is with us always...





OK, I can't try this from home, but it seems like it ought to work.

Create a local file that has the same field names as the existing table you want to export. Except for the primary key, the fields are all calculations that look up the desired fields from the database on the server. Make a relationship between the local file's primary key and that in the server-hosted file. Import the values of the primary key from the server-based file, and if my theory's right, you now have a "shadow" copy of the server-based data. Share just this file via ODBC, and use a script to automatically create new records in the local file on a regular basis.

I'll be working this weekend, I will give it a try and report back what I find.
I am quite happy to stick with fm6 and fm5server so far! Gosh, I thought the difference between the server and the advanced server was only the amount of users as far as the web companion is concerned...
Duplicating (as bill said) the base is a way though more work than strait export, and still not real time access.
What are the apps needing to access to FM data?
Of course doing an export would be much simpler, and probably faster than using ODBC, so if that option will work, it's definitely the way to go. I assumed pcarrier was looking for a live update sort of thing.

Actually, I bet you can use web publishing to allow almost realtime updates. If you create a local FM file that publishes a simple web page, and have it call a script that in turn runs exports from the server-hosted files to XML or maybe HTML tables, which can then be served by your desktop's web publishing. Then just grab them via the application of your preference. That's probably as close to realtime as you're going to get without shelling out for Server Advanced. You'd still have to tie up a client all the time, but...

HOLY COW! they want $1500 to upgrade Server 7 to Server Advanced, and yet I can get Lasso for under $700??? Methinks someone at FileMaker is smoking one of those funny little pipes...

Why do companies have to behave so greedily? It's not like FileMaker is a cheap program to begin with...
There's one other thing, probably not worth mentioning, but I'm mentioning it anyway. If you have Filemaker Developer 7, you can get  a special developer's version of Server Advanced for just ten dollars. It only allows three simultaneous connections of each type, so it's pretty useless for a production database.
SOLUTION
Avatar of Member_2_908359
Member_2_908359
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi guys,

thanks for all this info.

I am basically new to working with FM.  The job is for a client that uses FM and want to have his data transfered to his accounting system(Simply Accounting) with no human intervention.  It does not need to be real time, but it need to be updated at least a few times a day.  The key is no human intervention.

I did have a hard time explaining this FM pricing and feature thing to my client.  They are thinking about getting the Advanced Server; I should get an anwer today on that.  If they don't, I need to do this with the least amount of work, while keeping it easily maintainable.  The whole thing is part of a larger project run by another consultant, so although I love the other backend solution (that how I would have done things in the first place), it's really feasible at this moment; not within budget anyway.

So, I think my option will be to have export scripts in FM.  As far as the API goes, I think their Automation server is quite minimal, but I can run a FM script from my application, so that should be enough.

Any last comment?

thank you very much billmercer and lesouef for helping me get the jist of FM.
Generating export files from FM is very fast and easy. I have a system where I generate exports from a number of files on a scheduled basis, and transfer the files to a remote server where they are automatically imported into a SQL-based system. It runs several times a day, and works quite well. I could run it every half-hour if I wanted to.

As long as the accounting software has a way to automatically import a file, this should be very easy to do. The best way to schedule the export is to create a local FM file with an autorun script which then calls the export script from the server-based file, sends the file to the other server, and then exits itself. You can then use the at service or cron or something to schedule this file to open on a regular basis.

Something you might find helpful when working with export files is the Protolight File Plugin. It allows you to manipulate files and folders from within FileMaker scripts, and is free.
Do a Google search for Protolight Plugin to find the site.