Files
sql-scripts/TPDT-268 - ACP in task sequence/dba_structure/SMSCalendar.sql
2024-03-07 16:52:14 +01:00

47 lines
2.4 KiB
SQL

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* Script pour la création des tables du calendrier DBA. */
/* Ces objects doivent uniquement être créés sur le serveur SCINBDEVMON01 c'est pourquoi le script est commenté. Merci de ne pas l'installer sur d'autres systèmes. */
/* 19.03.2019 / SPE */
/* */
/* Modifications */
/* */
/*----------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* <-- Remove this to uncomment
USE [HCITools]
IF NOT EXISTS (SELECT 1
FROM sys.objects o WITH (NOLOCK)
JOIN sys.schemas s WITH (NOLOCK) ON o.schema_id = s.schema_id
WHERE o.name = 'SMSCalendar'
AND o.type IN (N'U')
AND s.name = 'mon')
BEGIN
CREATE TABLE [mon].[SMSCalendar](
[SMSCalendarID] [int] IDENTITY(1,1) NOT NULL,
[SCStartDate] [datetime] NOT NULL,
[SCEndDate] [datetime] NOT NULL,
[SCType] [tinyint] NOT NULL
) ON [PRIMARY]
END
IF NOT EXISTS (SELECT 1
FROM sys.objects o WITH (NOLOCK)
JOIN sys.schemas s WITH (NOLOCK) ON o.schema_id = s.schema_id
WHERE o.name = 'SMSCalendarDBAMailingListLink'
AND o.type IN (N'U')
AND s.name = 'mon')
BEGIN
CREATE TABLE [mon].[SMSCalendarDBAMailingListLink](
[SMSCalendarDBAMailingListLinkID] [int] IDENTITY(1,1) NOT NULL,
[SCDMLLCalendarID] [int] NOT NULL,
[SCDMLLDBAMailingListID] [int] NOT NULL
) ON [PRIMARY]
END
Remove this to uncomment --> */