Concatenating variables into string literals in dynamic query
I can’t get this query to work, I’ve tried adding quotes, removing quotes, different data types. The date format that the sp_report QuickBooks procedure is expecting is {d’yyy-mm-dd’}, and it works perfectly fine when I do this: