CREATE PROCEDURE PRO_IMSI999 AS BEGIN /* Procedure body */ create table #imsi ( enter_dt char(8) ) declare @ymd char(8) select @ymd = '20071231' while @ymd < '20080501' begin select @ymd = CONVERT(CHAR(8),DATEADD( dd, 1, @ymd ),112) insert into #imsi ( enter_dt ) values ( @ymd ) end select * from #imsi drop table #imsi END ============================== CREATE PROCEDURE PRO_IMSI999 AS BEGIN /* P..