if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[LV_Group]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[LV_Group]
The above syntax checks and deletes a regular table. How do I write one that checks for a local temp table? For example, how do I check for the existence of a local temp table "#tbl_temp" and delete it? Thanks.