Viewing 10 posts - 121 through 130 (of 130 total)
ok.
i change my fetch statement in this code.
still not working
declare @P1 nvarchar(32)
declare @mtd2 float
DECLARE @qtd float
declare @ytd float
declare c1 CURSOR FOR
select account,MTDTWR ,QTDTWR,YTDTWR from #temp1
open c1
FETCH NEXT FROM c1...
April 19, 2012 at 12:25 pm
this is my complete code,why it snot working for so many rows,if there is only 1 row its working.
otherwise its just getting me last values.everything else is getting null.
declare @P1...
April 19, 2012 at 12:10 pm
ok. i tried to put everwhere nothing is working
plz help
where should i put it
April 18, 2012 at 3:09 pm
declare @P1 nvarchar(32)
declare @mtd2 float
declare c1 CURSOR FOR
select account, MTD from #temp2
open c1
FETCH NEXT FROM c1
INTO @P1,@mtd2
WHILE @@FETCH_STATUS = 0
begin
if(@mtd2 IS NULL )
BEGIN
declare @IRR2 float
EXEC pdashboard
select @IRR2...
April 18, 2012 at 2:51 pm
i am also putting in if statement and after end of if,
nothing is working out.
where should i put
April 18, 2012 at 2:47 pm
OK. I PUT FETCH_NEXT LIKE THIS
STILL NOT WORKING GOING ENDLESS.
declare @P1 nvarchar(32)
declare @mtd2 float
declare c1 CURSOR FOR
select account, MTD from #temp2
open c1
FETCH NEXT FROM c1
INTO @P1,@mtd2
WHILE @@FETCH_STATUS =...
April 18, 2012 at 2:38 pm
ok.simple question.my cursor return one value that i need to take in temp table
simply i can insert into temp table(cursor return value using local variable)
April 18, 2012 at 2:24 pm
thanks for the link,i got it
April 18, 2012 at 11:44 am
where should i put fetch_next in body
April 18, 2012 at 11:23 am
whats wrong with this code,i am getting values again and again.repeating
declare @P1 nvarchar(32)
declare @mtd2 float
...
April 18, 2012 at 10:56 am
Viewing 10 posts - 121 through 130 (of 130 total)