SQL Server allows getting a current date with this query:
select getdate()
In 1C query, it doesn't work. I need to get the current date in the DataCompositionScheme
query and I don't know how to do it. Function CurrentDate()
doesn't work in queries, only in scripts.
I know that in queries I can use parameters, for example:
Query.Text = "select &getdateparameter";
Query.SetParameter("getdateparameter",CurrentDate())
but is it possible to do the same in the DataCompositionScheme
query?