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.

Declare and Set variables

Featured Replies

Has anyone declared and set a variable before a select statement and then used that variable in the select statement with no errors (see below)? I am trying to do this in a SQL 2000 Server db.

Declare @title AS varchar (25)

SET @title = 'COUNSEL'

SELECT * FROM timekeep WHERE tktitle = @title

This is all about SQL right? Since FileMaker doesn't use SQL you would probably be off asking this question on a site that was focused on the SQL language.

  • Author

No it is not just about SQL. The example works just fine when executed via query analyzer and is a valid select statement. The select statement works just fine without the DECLARE and SET function when it is used in an FM import script step. I am puzzled that when the DECLARE and SET is included FM returns an error. My thinking is that the (valid) query statement is just being passed through to the sql server 2000 db as defined in the ODBC admin tool and don't understand why FM would generate an error.

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.