Filemaker Server Advanced 11 as DataSource

Questions and answers regarding general SQL and backend databases

Filemaker Server Advanced 11 as DataSource

Postby david.martinez » Fri Mar 23, 2012 3:31 pm

Hi,

I have tried to set up a new database source to connect to a Filemaker 11 DB and Servoy always is returning me this kind of error:

Code: Select all
Could not load record
> com.servoy.j2db.dataprocessing.DataException: Borrow prepareStatement from pool failed


To set up I have created a new Windows ODBC and in Servoy I'm creating a new database server with this configuration:

URLjdbc:odbc:<nameDSN>
Driver:sun.jdbc.odbc.JdbcOdbcDriver

So my questions are:

1.- Is possible to read/write from filemaker11 DB?
2.- What is wrong with my configuration?

Thanks in advance!
david.martinez
 
Posts: 2
Joined: Thu Jun 16, 2011 11:07 am

Re: Filemaker Server Advanced 11 as DataSource

Postby ROCLASI » Fri Mar 23, 2012 3:53 pm

Hi David,

Just going on the error message I would say FMPro 11 doesn't support prepared statements. Something Servoy uses extensively.
I suggest you check with Filemaker Inc. to see if this is the case.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Filemaker Server Advanced 11 as DataSource

Postby dpriddle1331311432 » Wed Mar 28, 2012 2:27 am

Assuming you've got FileMaker running and ODBC/JDBC sharing turned on, and have the JDBC driver .jar file you download from FileMaker's website in your application_server/drivers folder, then I think the problem is your url and driver strings.

To connect to a FileMaker file called MyFile.fp7 running on the same machine as Servoy, your URL would look like this:
Code: Select all
jdbc:filemaker://localhost/MyFile


And the driver string would be this:
Code: Select all
com.filemaker.jdbc.Driver


Note that if you're trying to connect with FileMaker using Servoy 5.2 and are on a Mac, you'll need to make the connection manually in the properties file. (See this post: https://www.servoy.com/forum/viewtopic.php?f=4&t=15549#p83801)

One other thing to be aware of: if there are tables across multiple files you want to connect with, you'll need to import those tables into a single .fp7 file. Otherwise, you'll see the connections, but you won't actually be able to access any of the data.
Dave Riddle
Servoy Developer
McGilly Information Systems
dpriddle1331311432
 
Posts: 2
Joined: Fri Mar 09, 2012 6:43 pm


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 30 guests

cron