Hello,
I am trying to set up a database extractor for SQL Server database. I would like to pass parameters to the query so that the extraction logic can be controlled via the env file.
Here is what I have done.
- Created an environment variable called “DEPT_ID”,
- In the YAML file, I am using ${DEPT_ID} to use the value of the env variable.
SELECT
*
FROM
bEmployee]
WHERE >Dept_id] = ${DEPT_ID}
While running the DB-Extractor, I am encountering the following error.
KeyError: DEPT_ID
I am wondering if the product even supports the use of parameterized queries in the DB-Extractor.
Any help will be greatly appreciated.
Thanks,
Dinesh