Hi Guys,
I got SSIS SQL job; Which has package parameter assigned to thats
StartDate
EndDate
We pick date from the tale and assign variable at run time; if we run manually we just update the date in job and run it manually.
But now we cant to schedule the same job weekly once; date cant come from variable; want it to be manual and we should be able provide start date as 1st day of week.
So for package parameter that
StartDate :SELECT DATEADD(DD, 1 - DATEPART(DW, GETDATE()), GETDATE()) [used in value box]
But i get below error:
A valid value with the data type of DateTime was expected. The conversion exception message was: The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.Regards,
Navin
Navin.D http://dnavin.wordpress.com