I'm working with a SQL query in an excel workbook and trying to make it a little more user friendly by pulling the date value from a cell.
Right now I have the query setup in the Connection Properties that looks like this:
DECLARE @BEGIN AS DATETIME = DATEADD(second, DATEDIFF(second, GETDATE(), GETUTCDATE()), '2020-11-08 00:00:00:000');
Ideally I'm looking for something like DECLARE @BEGIN = Sheet1!a1
Is it possible to replace it this way, or should I be looking to something else?