Viewing 2 posts - 1 through 2 (of 2 total)
Hi Mike, how about this to test for existence?
if not exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[@TABLENAME]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
Capri
September 24, 2004 at 2:21 pm
#524393
I was digging around a bit, and found an previous discussion about using views versus temp tables. Here's an answer from Andy Warren:
'...indexed views are certainly the right option...
September 23, 2004 at 2:54 pm
#524260