Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6938 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted (edited)

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

This topic is 6938 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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