Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
iancuct
Yak Posting Veteran
73 Posts |
Posted - 2002-09-20 : 18:37:38
|
| i wanted to do this without the while loop in access cananyone help me pleaseDECLARE @i INTDECLARE @startDate datetimeSET @startdate = '1/1/2002'SET @i = 0TRUNCATE TABLE DAYS WHILE @i < 365begininsert into days([date])values (@startDate+@i)SET @i = @i + 1end |
|
|
Page47
Master Smack Fu Yak Hacker
2878 Posts |
Posted - 2002-09-20 : 19:47:10
|
insert into days([date])select @startdate + nfrom numbers of course ...You'll have to have a tally table called number ...Jay White{0} |
 |
|
|
|
|
|