
/*------ ATD 361266 ------*/
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'PREVIA' AND COLUMN_NAME = 'SELECAOFILIAL') 
alter TABLE dbo.PREVIA add SELECAOFILIAL VARCHAR(254)
go