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.

Change the name an ODBC connection uses for UserName...???

Featured Replies

I'm connecting to FM via ODBC and inserting, updating, deleting reords, etc.

Many of the files I'm working with have fields for Created By:, Updated By:, etc., and it automatically fills these fields with the current User Name set in FileMaker preferences.

My scripts that insert and update records via ODBC, though, use the login username here. Is there way I can set what this should use as a UserName for ODBC connections?

Any information would be greatly appreciated. Thanks!

Could you construct a translation table in whatever app you're connecting with, so that for each user, there's a lookup for 'Login User -> FMPro User'?

That is, if I'm understanding your question correctly, which there's every chance I'm not :)

By the way, would you be willing to help me even get connected via ODBC? I just read the DataDirect help files and I'm bleeding from the ears and nose.

Best,

Steve

  • Author

Heh, well it's pretty much like any other ODBC setup. Have you done any at all? Basically you just need to get the DataDirect driver installed on your machine. Then go into ODBC via Administrator Tools in Windows, go to the System DSN tab, Click Add. For host, use localhost (if FM is running on the same machine you're running the scripts from.) If FM is running on a different machine put the IP address or domain to that server. For Port use 2399. Then for server data source click the ... button and it'll bring up all the current shares you have in FM. Make sure you've turned on ODBC sharing in FM prefs. or you won't see them show up.

Yup, did all that (connecting to a remote database, so I used the machine name), but when I click the "..." to bring up sources, I get an "Authorisation Failure" error.

Most of my database programming has been in Visual Basic and now RealBasic, connecting to MySQL databases, so I've got some familiarity but am learning that with the incredible power of Filemaker comes a fair amount of confusion as well (mind you, when I see what my co-developer here has done with it, I'm thinking it's worth it :).

And to get back to *your* post, did I understand the question correctly? What environment are you using to connect to FMPro via ODBC?

Best,

Steve

Edited by Guest

connecting to a remote database, so I used the machine name)

If that remote machine is not running FileMaker Server Advanced you won't be able to connect. FileMaker Pro only allows ODBC connections from its own machine.

Remote ODBC is only supported through FMSA.

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.