Greetings everyone,
I have a situation that I need to monitor values from a database using ODBC connector. I've managed to configure and retrieve the data correctly, the sql connection is all correct.
My problem is, I have to execute query over a database which the name changes daily.in the following format: Database_07142022.
My query is like: select name from Database_07142022 where name = Teste limit 1;
So everyday the database name is changed to current date in MMDDYYYY format. I need the item to be able to input the current date when it executes the query to be able to work everyday.
I've checked the macro {DATE} but is format is yyyy.mm.dd so it does not fit.
Any idea on how can I achieve that?
I have a situation that I need to monitor values from a database using ODBC connector. I've managed to configure and retrieve the data correctly, the sql connection is all correct.
My problem is, I have to execute query over a database which the name changes daily.in the following format: Database_07142022.
My query is like: select name from Database_07142022 where name = Teste limit 1;
So everyday the database name is changed to current date in MMDDYYYY format. I need the item to be able to input the current date when it executes the query to be able to work everyday.
I've checked the macro {DATE} but is format is yyyy.mm.dd so it does not fit.
Any idea on how can I achieve that?
Comment