April 13, 2012 at 3:11 pm
help me with this code
its not showind date
declare @row1 datetime
set @row1 = @fromYTD
while(@row1 = @Todate)
begin
select thrudate from item3
set @row1 = DATEADD(MONTH , 1 , @row1)
end
plz help me
April 13, 2012 at 3:16 pm
Duplicate post all replies here http://www.sqlservercentral.com/Forums/Topic1282601-392-1.aspx
For performance Issues see how we like them posted here: How to Post Performance Problems - Gail Shaw[/url]
Need to Split some strings? Jeff Moden's DelimitedSplit8K[/url]
Jeff Moden's Cross tab and Pivots Part 1[/url]
Jeff Moden's Cross tab and Pivots Part 2[/url]
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply