
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[SERV_OS_CONFIG_PAGINAS]') AND type in (N'U'))
	DROP TABLE [dbo].[SERV_OS_CONFIG_PAGINAS]
GO


CREATE TABLE [dbo].[SERV_OS_CONFIG_PAGINAS](
	[TIPO_PAGINA] [int] NOT NULL,
	[SEQUENCIA] [int] NOT NULL,
	[TEXTO_PAGINA] [nvarchar](4000) NOT NULL,
 CONSTRAINT [PK_SERV_OS_CONFIG_PAGINAS] PRIMARY KEY CLUSTERED 
(
	[TIPO_PAGINA] ASC,
	[SEQUENCIA] 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

ALTER TABLE [dbo].[SERV_OS_CONFIG_PAGINAS] ADD  CONSTRAINT [DF_SERV_OS_CONFIG_PAGINAS_TEXTO_PAGINA]  DEFAULT ('') FOR [TEXTO_PAGINA]
GO


