Viewing post 1 (of 2 total)
Ha! Got it. Forgot about the first statement thing. So I tried:
exec sp_msforeachtable
'if dbo.checkforcolumn(''?'',''columnname'')=''exists''
begin
exec ''create trigger foo on ?
for insert, update
as
...
November 18, 2006 at 4:03 am
#672792