EnVisageOnline/Main/Database/Scripts/20160504/2_AddCrmCntxTbl.sql

32 lines
866 B
Transact-SQL

USE [EnVisage]
GO
IF (EXISTS (SELECT * FROM sys.tables where name='IntegrationCrmConnectionInfo'))
BEGIN
DROP TABLE [dbo].[IntegrationCrmConnectionInfo]
end
/****** Object: Table [dbo].[IntegrationCrmConnectionInfo] Script Date: 05/04/2016 10:16:36 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[IntegrationCrmConnectionInfo](
[ClientInfoId] [uniqueidentifier] NOT NULL,
[Id] [uniqueidentifier] NOT NULL,
[CrmUrl] [nvarchar](max) NOT NULL,
[CrmUserId] [nvarchar](50) NOT NULL,
[CrmPassword] [nvarchar](200) NOT NULL,
[CrmAccessClass] [nvarchar](200) NOT NULL,
CONSTRAINT [PK_IntegrationCrmConnectionInfo] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO