Viewing 2 posts - 1 through 2 (of 2 total)
Hi
Try this
select t1.userid,t2.testid,count(t2.questionid)
from #table1 t1
left join #table2 t2 on t1.testid = t2.testid
group by t2.testid,t1.userid
June 20, 2008 at 2:12 am
#831565
Try use this query:
select name from tempdb..sysobjects where name LIKE '#%'
This should select all temptables in the session.
June 19, 2008 at 4:09 am
#830971