IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FNTU_OrdineVersione]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
	IF EXISTS(SELECT TOP 1 1 FROM GT01_TRASCODIFICHE WHERE GT01_TIPO = 0)
		UPDATE GT01_TRASCODIFICHE SET GT01_PARALF1 = '01.90.90' WHERE GT01_TIPO = 0
	ELSE
		INSERT GT01_TRASCODIFICHE (GT01_TIPO, GT01_PARALF1) VALUES (0, '01.90.90')

GO


