
if not exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OligestGiacenzeProdotti]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

/****** Object:  Table [dbo].[OligestGiacenzeProdotti]    Script Date: 13/04/2018 17:29:04 ******/


CREATE TABLE [dbo].[OligestGiacenzeProdotti](
	[IDUscitaOligest] [bigint] NOT NULL,
	[GiacenzaOligest] [int] NOT NULL CONSTRAINT [DF_OligestGiacenzeProdotti_GiacenzaOligest]  DEFAULT ((0)),
	[DataInvioOligest] [datetime] NULL,
 CONSTRAINT [PK_OligestGiacenzeProdotti] PRIMARY KEY CLUSTERED 
(
	[IDUscitaOligest] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO