Thanks Curt, that's the same sort of solution that I was midway through myself.
Yours is nicer than mine though - it lends itself to easy modification. I added a union to the select and wiped out some views as well ;)
declare @cmd varchar(4000)
declare cmds cursor for
Select 'drop table [' + Table_Name + ']'
From INFORMATION_SCHEMA.TABLES
Where Table_Name like 'prefix%'
union
Select 'drop view [' + Table_Name + ']'
From INFORMATION_SCHEMA.VIEWS
Where Table_Name like 'prefix%'
open cmds
while 1=1
begin
fetch cmds into @cmd
if @@fetch_status != 0 break
exec(@cmd)
end
close local
deallocate local
Don't worry, it's not a production database - this is just for easy clean-up of my dev db while I try stuff out.