
/*------ ATD 396677 ------*/
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'ViaImpressao' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='PediCliComplemento')) 

ALTER TABLE PediCliComplemento ADD ViaImpressao integer not null default 0

go