As most people who work with Sql Server know, you can declare a temporary table like so:
create table #foo ( row_id int identity not null primary ke
Should be able to do:
CREATE INDEX #foo1 ON #foo(bar);