I am trying to split the table by Year and Month . The column I'm breaking through is a datetime column with the ISO format ('20150110', 20150202 ', etc.).
For example, I have sales data for 2010, 2011, 2012. I would like the data to be broken down for a year and broken down for a month every year. (2010/01, 2010/02, ... 2010/12, 2011/01, ... 2015/01 ...)
EX:
Sales2010Jan, Sales2010Feb, Sales2011Jan, Sales2011Feb, Sales2012Dec, etc.
My question is: is this possible? If so, how can I automate the process using SSIS?
sql sql-server dynamic-sql partitioning sql-agent-job
Amr tharwat
source share