Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ODBC connection using DSN-LESS connection string...

Featured Replies

  • Newbies

Hi,

I like to migrate my Filemaker Dabatabe to Mysql. I use PHP as an API in mapping database schema and Adodb class library in connecting to Filemaker via ODBC connectivity. I have more than 25 filemaker databases that need to be imported to Mysql and it's a tedious task for if will create DSN for each of FM databases and so I prefer to use DSN-LESS connection.

The problem is I got an error in my connection string. here is my code:

require (ADODB_PATH.'adodb-errorhandler.inc.php');

require (ADODB_PATH.'adodb.inc.php');

require (ADODB_PATH.'drivers/adodb-odbc.inc.php');

$db = ADONewConnection(DBASE_TYPE);

$dsn = "DRIVER={DataDirect 32-BIT SequeLink 5.5};HST=10.10.1.41;PRT=2399;DB=FMdatabase;UID=Devel***;PWD=****";

$db->Connect($dsn);

Note: I changed the value of UID, DB, and PWD for security reason.

I got this error:

Warning: odbc_connect() [function.odbc-connect]B) SQL error: [DataDirect][ODBC SequeLink driver][sequeLink Server]The specified data source is not defined., SQL state S1000 in SQLConnect in includesclassesadodbdriversadodb-odbc.inc.php on line 164

It seems it cannot find the database I specified in the connection string.

However if I remove the 'DB' (Database) attribute of the connection string, I got no error but the connection will pick-up any open Filemaker databases randomly and I have no way to get the specific database that I want. I already use the Metadatabases() of Adodb but I still have no luck.

Has anyone encounter this scenario?

Edited by Guest

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.