try creating a view in SQL Query Analyzer... here is an example:
CREATE VIEW dbo.vw_OLAP_dates_lastmonth
AS
SELECT
DISTINCT CS.actual_surgery_date as or_date
FROM
vw_LastDate as MaxDate, Orstat.dbo.orcase as CS
WHERE
CS.actual_surgery_date >= '10/1/1995' AND
CS.actual_surgery_date < CONVERT(datetime, STR(DATEPART(yyyy, DATEADD(day, 1,MaxDate.LastDate)), 4)
+ '-' + STR(DATEPART(mm, DATEADD(day, 1,MaxDate.LastDate)), 2)
+ '-' + '1', 102)
Then create the DTS package, Execute SQL task...
SELECT *, CONVERT(int, (((12 + datepart(month, or_date)
- CASE WHEN DatePart(day, or_date)
< 1 THEN 10 + 1 ELSE 10 END) % 12 + 1) / 3.0) + 0.75)
AS fiscal_quarter, (datepart(month, or_date)
+ CASE WHEN DatePart(month, or_date)
> 9 THEN - 9 ELSE 3 END) AS fiscal_month
FROM
vw_OLAP_dates_lastmonth
you can run any stored procedures in this package after updating... process all cubes, and you should be all set.. This particular job is one I run every month, to update the cubes... Hope you can make sense of this.