Jump to content
Sign in to follow this  
Jim1

Turn on ODBC

Recommended Posts

Hi,

We have an ODBC application that connects to FileMaker. However, the FM database always has ODBC as off after installation (even though we ship it ON). Is there a way that we can run a script to switch ODBC on. I know I can open the ODBC Sharing window, but would like to switch it on for the current database.

Any help would be greatly appreciated.

Thanks,

Jim.

Share this post


Link to post
Share on other sites

The preference for that toggle is stored in the Windows registry, in the FileMaker preferences. For FM 10 it's in this hive:

HKEY_CURRENT_USERSoftwareFileMakerFileMaker Pro10.0APlugIns

Where you'll find a key named "Disabled" that has its value set to "$RDACSFM1FWEB" by default.

Remove the "RDAC" setting and you'll find that ODBC access will be enabled.

However...

1) messing with the registry can potentially be very dangerous if you make a mistake

2) you'll need to change this key *before* FM loads because FM checks this key at startup only.

So you'll have to find a way to automate this, eith either the command line or VBscript.

Share this post


Link to post
Share on other sites

Thank you very much Wim, very helpful indeed!

Much appreciated.

Jim.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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