TG gave You the answer.
You will have to create the #temp table first though.
CREATE TABLE, is the statement to use, see BOL.
I just wanted to say thanks for reminding you of thehungersite in your signature 
I had just about forgotten about those, used to support them commonly before (thehungersite and thrainforestsite).
Will pick it up again.
I looked at the stats for the different sites,
and was a bit shocked about which ones were most popular.
Damnit, people should take care of their pets if they get any!
Here we go:
Year Clicks
#1
BREAT CANCER SITE (Free Mammograms)
2004 59,265,651
2003 49,211,445
2002 37,363,847
#2
ANIMAL RESCUE SITE (Feed abandoned pets)
2004 52,587,337
2003 39,948,086
2002 11,328,962
#3
HUNGER SITE SITE
2004 39,809,114
2003 38,785,490
2002 40,798,844
#4
RAINFOREST SITE
2004 26,522,578
2003 23,916,601
2002 21,526,818
#5
CHILD HEALTH SITE
2004 25,390,774
2003 22,869,573
2002 5,038,236
rockmoose