I am following this guide to create a heatmap.
http://sqljason.com/2012/03/heat-maps-for-ssrs-using-map-control.html
One of the steps is to feed a stored procedure another stored procedure that generated my data.
Mine looks something like this:
exec dbo.CreateHeatMap 20, 25, 'exec ZZ_N_FinalEcomDashboardCustomerRFMUnPivot 03, 001, 1/1/2014, 1/1/2020'
The problem is those dates. At first I was wrapping them in apostrophes like '1/1/2014' but that seemed to break the whole line.
I've tried every combination of apostrophes, declaring and setting variables, using concatenate or plus signs, and everything else but I can't seem to get it to work.
I am building this line in a SSRS report with parameters. So my ultmate goal is something like this
exec dbo.CreateHeatMap 20, 25, 'exec ZZ_N_FinalEcomDashboardCustomerRFMUnPivot @Company, @Division, @Date, @date2'
with those being parameters in my report. And I am using this line to create a dataset in my report.
What is the correct syntax for this?