Viewing 7 posts - 16 through 22 (of 22 total)
Yes,you can nest if statements in storedprocedure
example
create procedure dbo.exampleSp
(@RefreshFactweekly int,@RefreshFactMonthly int)
WITH RECOMPILE
as
begin
declare @CurrYr int
select @curryr=FiscalyearId from Salesdate where SDate=getdate()
if @RefreshFactweekly = 1
begin
if @RefreshFactMonthly = 1
begin
Insert prodsales
Select d.id from products...
April 8, 2005 at 4:58 am
hi,
When you calculate for weighted average as
sum({{[Measures].[Takers]}*{[Measures].[Score]}}) /
count({[Measures].[Takers]})
Even if syntax is correct,it will give...
April 8, 2005 at 4:19 am
According to me you can not pass parameter in inline queries for DTS SQL task.
Generally the parameters is passed in query using "?" then setting input parameter from global variable.
example
Create...
April 8, 2005 at 2:01 am
Whenever you deploy your dts package to another machine you do have to give location of .ini file path if the path is not mapped properly.
One more way to set...
April 6, 2005 at 3:56 am
Hi,
Following script will give you same result as above VB code,without using cursor.
Declare @Found varchar(100),
@Results varchar(100),
@STR varchar(100),
@length int,
@leng int
set @STR =...
March 28, 2005 at 5:45 am
Hi,
You have to specify the level of the time dimension, Find below the example.
If the lowest level is week.If Lowest level is day the change...
March 28, 2005 at 2:42 am
sum(filter([time].currentmember,(([measures].[Duration])>0)))
/count(filter([time].currentmember,(([measures].[Duration])>0)))
I hope this will help you
March 24, 2005 at 2:26 am
Viewing 7 posts - 16 through 22 (of 22 total)