IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NETPOINTS_LOG]')) 
	BEGIN 
		RETURN;
	END
ELSE
BEGIN
	CREATE TABLE [dbo].[NETPOINTS_LOG](
		[ID] [bigint] IDENTITY(1,1) NOT NULL,
		[DT_LOG] [datetime] NOT NULL DEFAULT (getdate()),
		[ID_MOV] [bigint] NULL,
		[TP_LOG] [varchar](20) NOT NULL,
		[DS_LOG] [varchar](1000) NOT NULL,
	PRIMARY KEY CLUSTERED 
	(
		[ID] ASC
	)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
	) ON [PRIMARY]

END


