ProjetThe/script.sql

1403 lines
79 KiB
Transact-SQL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

USE [master]
GO
/****** Object: Database [ProjetThe] Script Date: 19-01-19 17:02:42 ******/
CREATE DATABASE [ProjetThe]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'ProjetThe', FILENAME = N'C:\Users\adrie\ProjetThe.mdf' , SIZE = 8192KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB )
LOG ON
( NAME = N'ProjetThe_log', FILENAME = N'C:\Users\adrie\ProjetThe_log.ldf' , SIZE = 8192KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB )
GO
ALTER DATABASE [ProjetThe] SET COMPATIBILITY_LEVEL = 130
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [ProjetThe].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [ProjetThe] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [ProjetThe] SET ANSI_NULLS OFF
GO
ALTER DATABASE [ProjetThe] SET ANSI_PADDING OFF
GO
ALTER DATABASE [ProjetThe] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [ProjetThe] SET ARITHABORT OFF
GO
ALTER DATABASE [ProjetThe] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [ProjetThe] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [ProjetThe] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [ProjetThe] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [ProjetThe] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [ProjetThe] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [ProjetThe] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [ProjetThe] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [ProjetThe] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [ProjetThe] SET DISABLE_BROKER
GO
ALTER DATABASE [ProjetThe] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [ProjetThe] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [ProjetThe] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [ProjetThe] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [ProjetThe] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [ProjetThe] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [ProjetThe] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [ProjetThe] SET RECOVERY SIMPLE
GO
ALTER DATABASE [ProjetThe] SET MULTI_USER
GO
ALTER DATABASE [ProjetThe] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [ProjetThe] SET DB_CHAINING OFF
GO
ALTER DATABASE [ProjetThe] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )
GO
ALTER DATABASE [ProjetThe] SET TARGET_RECOVERY_TIME = 60 SECONDS
GO
ALTER DATABASE [ProjetThe] SET DELAYED_DURABILITY = DISABLED
GO
ALTER DATABASE [ProjetThe] SET QUERY_STORE = OFF
GO
USE [ProjetThe]
GO
ALTER DATABASE SCOPED CONFIGURATION SET LEGACY_CARDINALITY_ESTIMATION = OFF;
GO
ALTER DATABASE SCOPED CONFIGURATION SET MAXDOP = 0;
GO
ALTER DATABASE SCOPED CONFIGURATION SET PARAMETER_SNIFFING = ON;
GO
ALTER DATABASE SCOPED CONFIGURATION SET QUERY_OPTIMIZER_HOTFIXES = OFF;
GO
USE [ProjetThe]
GO
/****** Object: Table [dbo].[T_listParticipant] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_listParticipant](
[ID_LP] [int] IDENTITY(1,1) NOT NULL,
[ID_equipe] [int] NULL,
[ID_benificiaire] [int] NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[T_beneficiaire] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_beneficiaire](
[ID_beneficiaire] [int] IDENTITY(1,1) NOT NULL,
[B_nom] [varchar](50) NULL,
[B_prenom] [varchar](50) NULL,
[B_anniversaire] [datetime] NULL,
[B_img] [image] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[T_event] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_event](
[ID_event] [int] IDENTITY(1,1) NOT NULL,
[E_date] [datetime] NULL,
[E_duree] [datetime] NULL,
[ID_typeEvenement] [int] NULL,
[E_description] [text] NULL,
[ID_lieu] [int] NULL,
[E_Pic] [image] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[T_equipe] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_equipe](
[ID_equipe] [int] IDENTITY(1,1) NOT NULL,
[E_nom] [nchar](10) NULL,
[E_point] [int] NULL,
[ID_evenement] [int] NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[T_lieu] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_lieu](
[ID_lieu] [int] IDENTITY(1,1) NOT NULL,
[L_nom] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[T_typeEvenement] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_typeEvenement](
[ID_typeEvenement] [int] IDENTITY(1,1) NOT NULL,
[TE_nom] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object: View [dbo].[event] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[event]
AS
SELECT dbo.T_listParticipant.ID_benificiaire, dbo.T_beneficiaire.ID_beneficiaire, dbo.T_listParticipant.ID_equipe AS Expr1, dbo.T_equipe.ID_equipe, dbo.T_event.ID_event, dbo.T_equipe.ID_evenement, dbo.T_lieu.ID_lieu,
dbo.T_event.ID_lieu AS Expr2, dbo.T_typeEvenement.ID_typeEvenement, dbo.T_event.ID_typeEvenement AS Expr3
FROM dbo.T_beneficiaire INNER JOIN
dbo.T_listParticipant ON dbo.T_beneficiaire.B_nom = dbo.T_listParticipant.ID_benificiaire INNER JOIN
dbo.T_equipe ON dbo.T_listParticipant.ID_equipe = dbo.T_equipe.ID_equipe INNER JOIN
dbo.T_event ON dbo.T_equipe.ID_evenement = dbo.T_event.ID_event INNER JOIN
dbo.T_lieu ON dbo.T_event.ID_lieu = dbo.T_lieu.ID_lieu INNER JOIN
dbo.T_typeEvenement ON dbo.T_event.ID_typeEvenement = dbo.T_typeEvenement.ID_typeEvenement
GO
/****** Object: Table [dbo].[T_repa] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_repa](
[ID_repa] [int] IDENTITY(1,1) NOT NULL,
[ID_listPlat] [int] NULL,
[ID_typeRepa] [int] NULL,
[R_Date] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[T_typeRepa] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_typeRepa](
[ID_typeRepa] [int] IDENTITY(1,1) NOT NULL,
[TR_nom] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[T_listPlat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_listPlat](
[ID_listPlat] [int] IDENTITY(1,1) NOT NULL,
[ID_repa] [int] NULL,
[ID_plat] [int] NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[T_typePlat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_typePlat](
[ID_typePlat] [int] NULL,
[TP_nom] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[T_plat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_plat](
[ID_plat] [int] IDENTITY(1,1) NOT NULL,
[P_nom] [varchar](50) NULL,
[P_img] [image] NULL,
[ID_typePlat] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: View [dbo].[repas] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[repas]
AS
SELECT dbo.T_repa.ID_typeRepa, dbo.T_listPlat.ID_repa, dbo.T_repa.ID_repa AS Expr1, dbo.T_listPlat.ID_plat, dbo.T_plat.ID_plat AS Expr2, dbo.T_plat.ID_typePlat AS Expr3, dbo.T_typePlat.ID_typePlat,
dbo.T_typeRepa.ID_typeRepa AS Expr4
FROM dbo.T_listPlat INNER JOIN
dbo.T_repa ON dbo.T_listPlat.ID_repa = dbo.T_repa.ID_repa INNER JOIN
dbo.T_plat ON dbo.T_listPlat.ID_plat = dbo.T_plat.ID_plat INNER JOIN
dbo.T_typePlat ON dbo.T_plat.ID_typePlat = dbo.T_typePlat.ID_typePlat INNER JOIN
dbo.T_typeRepa ON dbo.T_repa.ID_typeRepa = dbo.T_typeRepa.ID_typeRepa
GO
/****** Object: StoredProcedure [dbo].[AjouterT_beneficiaire] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AjouterT_beneficiaire]
@ID_beneficiaire int OUTPUT,
@B_nom varchar(50),
@B_prenom varchar(50),
@B_anniversaire datetime,
@B_img image
AS
INSERT INTO T_beneficiaire(B_nom,B_prenom,B_anniversaire,B_img)
VALUES(@B_nom,@B_prenom,@B_anniversaire,@B_img)
SET @ID_beneficiaire=@@IDENTITY
RETURN
GO
/****** Object: StoredProcedure [dbo].[AjouterT_equipe] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AjouterT_equipe]
@ID_equipe int OUTPUT,
@E_nom nchar(10),
@E_point int,
@ID_evenement int
AS
INSERT INTO T_equipe(E_nom,E_point,ID_evenement)
VALUES(@E_nom,@E_point,@ID_evenement)
SET @ID_equipe=@@IDENTITY
RETURN
GO
/****** Object: StoredProcedure [dbo].[AjouterT_event] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AjouterT_event]
@ID_event int OUTPUT,
@E_date datetime,
@E_duree datetime,
@ID_typeEvenement int,
@E_description text,
@ID_lieu int,
@E_Pic image
AS
INSERT INTO T_event(E_date,E_duree,ID_typeEvenement,E_description,ID_lieu, E_Pic)
VALUES(@E_date,@E_duree,@ID_typeEvenement,@E_description,@ID_lieu,@E_pic)
SET @ID_event=@@IDENTITY
RETURN
GO
/****** Object: StoredProcedure [dbo].[AjouterT_lieu] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AjouterT_lieu]
@ID_lieu int OUTPUT,
@L_nom text
AS
INSERT INTO T_lieu(L_nom)
VALUES(@L_nom)
SET @ID_lieu=@@IDENTITY
RETURN
GO
/****** Object: StoredProcedure [dbo].[AjouterT_listParticipant] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AjouterT_listParticipant]
@ID_LP int OUTPUT,
@ID_equipe int,
@ID_benificiaire int
AS
INSERT INTO T_listParticipant(ID_equipe,ID_benificiaire)
VALUES(@ID_equipe,@ID_benificiaire)
SET @ID_LP=@@IDENTITY
RETURN
GO
/****** Object: StoredProcedure [dbo].[AjouterT_listPlat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AjouterT_listPlat]
@ID_listPlat int OUTPUT,
@ID_repa int,
@ID_plat int
AS
INSERT INTO T_listPlat(ID_repa,ID_plat)
VALUES(@ID_repa,@ID_plat)
SET @ID_listPlat=@@IDENTITY
RETURN
GO
/****** Object: StoredProcedure [dbo].[AjouterT_plat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AjouterT_plat]
@ID_plat int OUTPUT,
@P_nom text,
@P_img image,
@ID_typePlat int
AS
INSERT INTO T_plat(P_nom,P_img,ID_typePlat)
VALUES(@P_nom,@P_img,@ID_typePlat)
SET @ID_plat=@@IDENTITY
RETURN
GO
/****** Object: StoredProcedure [dbo].[AjouterT_repa] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AjouterT_repa]
@ID_repa int OUTPUT,
@ID_listPlat int,
@ID_typeRepa int,
@R_Date datetime
AS
INSERT INTO T_repa(ID_listPlat,ID_typeRepa,R_Date)
VALUES(@ID_listPlat,@ID_typeRepa,@R_Date)
SET @ID_repa=@@IDENTITY
RETURN
GO
/****** Object: StoredProcedure [dbo].[AjouterT_typeEvenement] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AjouterT_typeEvenement]
@ID_typeEvenement int OUTPUT,
@TE_nom text
AS
INSERT INTO T_typeEvenement(TE_nom)
VALUES(@TE_nom)
SET @ID_typeEvenement=@@IDENTITY
RETURN
GO
/****** Object: StoredProcedure [dbo].[AjouterT_typePlat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AjouterT_typePlat]
@ID_typePlat int,
@TP_nom varchar(50)
AS
IF EXISTS(SELECT * FROM T_typePlat WHERE ID_typePlat=@ID_typePlat)
RAISERROR('Clé primaire existant !',16,1)
ELSE INSERT INTO T_typePlat(ID_typePlat,TP_nom)
VALUES(@ID_typePlat,@TP_nom)
RETURN
GO
/****** Object: StoredProcedure [dbo].[AjouterT_typeRepa] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AjouterT_typeRepa]
@ID_typeRepa int OUTPUT,
@TR_nom varchar(50)
AS
INSERT INTO T_typeRepa(TR_nom)
VALUES(@TR_nom)
SET @ID_typeRepa=@@IDENTITY
RETURN
GO
/****** Object: StoredProcedure [dbo].[ModifierT_beneficiaire] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ModifierT_beneficiaire]
@ID_beneficiaire int,
@B_nom varchar(50),
@B_prenom varchar(50),
@B_anniversaire datetime,
@B_img image
AS
IF(@ID_beneficiaire IS NULL OR @ID_beneficiaire=0)
RAISERROR('Identifiant requis !',16,1)
ELSE UPDATE T_beneficiaire
SET B_nom=@B_nom,B_prenom=@B_prenom,B_anniversaire=@B_anniversaire,B_img=@B_img
WHERE ID_beneficiaire=@ID_beneficiaire
RETURN
GO
/****** Object: StoredProcedure [dbo].[ModifierT_equipe] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ModifierT_equipe]
@ID_equipe int,
@E_nom nchar(10),
@E_point int,
@ID_evenement int
AS
IF(@ID_equipe IS NULL OR @ID_equipe=0)
RAISERROR('Identifiant requis !',16,1)
ELSE UPDATE T_equipe
SET E_nom=@E_nom,E_point=@E_point,ID_evenement=@ID_evenement
WHERE ID_equipe=@ID_equipe
RETURN
GO
/****** Object: StoredProcedure [dbo].[ModifierT_event] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ModifierT_event]
@ID_event int,
@E_date datetime,
@E_duree datetime,
@ID_typeEvenement int,
@E_description text,
@ID_lieu int,
@E_Pic image
AS
IF(@ID_event IS NULL OR @ID_event=0)
RAISERROR('Identifiant requis !',16,1)
ELSE UPDATE T_event
SET E_date=@E_date,E_duree=@E_duree,ID_typeEvenement=@ID_typeEvenement,E_description=@E_description,ID_lieu=@ID_lieu,E_Pic=@E_Pic
WHERE ID_event=@ID_event
RETURN
GO
/****** Object: StoredProcedure [dbo].[ModifierT_lieu] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ModifierT_lieu]
@ID_lieu int,
@L_nom text
AS
IF(@ID_lieu IS NULL OR @ID_lieu=0)
RAISERROR('Identifiant requis !',16,1)
ELSE UPDATE T_lieu
SET L_nom=@L_nom
WHERE ID_lieu=@ID_lieu
RETURN
GO
/****** Object: StoredProcedure [dbo].[ModifierT_listParticipant] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ModifierT_listParticipant]
@ID_LP int,
@ID_equipe int,
@ID_benificiaire int
AS
IF(@ID_LP IS NULL OR @ID_LP=0)
RAISERROR('Identifiant requis !',16,1)
ELSE UPDATE T_listParticipant
SET ID_equipe=@ID_equipe,ID_benificiaire=@ID_benificiaire
WHERE ID_LP=@ID_LP
RETURN
GO
/****** Object: StoredProcedure [dbo].[ModifierT_listPlat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ModifierT_listPlat]
@ID_listPlat int,
@ID_repa int,
@ID_plat int
AS
IF(@ID_listPlat IS NULL OR @ID_listPlat=0)
RAISERROR('Identifiant requis !',16,1)
ELSE UPDATE T_listPlat
SET ID_repa=@ID_repa,ID_plat=@ID_plat
WHERE ID_listPlat=@ID_listPlat
RETURN
GO
/****** Object: StoredProcedure [dbo].[ModifierT_plat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ModifierT_plat]
@ID_plat int,
@P_nom text,
@P_img image,
@ID_typePlat int
AS
IF(@ID_plat IS NULL OR @ID_plat=0)
RAISERROR('Identifiant requis !',16,1)
ELSE UPDATE T_plat
SET P_nom=@P_nom,P_img=@P_img,ID_typePlat=@ID_typePlat
WHERE ID_plat=@ID_plat
RETURN
GO
/****** Object: StoredProcedure [dbo].[ModifierT_repa] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ModifierT_repa]
@ID_repa int,
@ID_listPlat int,
@ID_typeRepa int,
@R_Date datetime
AS
IF(@ID_repa IS NULL OR @ID_repa=0)
RAISERROR('Identifiant requis !',16,1)
ELSE UPDATE T_repa
SET ID_listPlat=@ID_listPlat,ID_typeRepa=@ID_typeRepa,R_Date=@R_Date
WHERE ID_repa=@ID_repa
RETURN
GO
/****** Object: StoredProcedure [dbo].[ModifierT_typeEvenement] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ModifierT_typeEvenement]
@ID_typeEvenement int,
@TE_nom text
AS
IF(@ID_typeEvenement IS NULL OR @ID_typeEvenement=0)
RAISERROR('Identifiant requis !',16,1)
ELSE UPDATE T_typeEvenement
SET TE_nom=@TE_nom
WHERE ID_typeEvenement=@ID_typeEvenement
RETURN
GO
/****** Object: StoredProcedure [dbo].[ModifierT_typePlat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ModifierT_typePlat]
@ID_typePlat int,
@TP_nom varchar(50)
AS
IF(@ID_typePlat IS NULL OR @ID_typePlat=0)
RAISERROR('Identifiant requis !',16,1)
ELSE UPDATE T_typePlat
SET TP_nom=@TP_nom
WHERE ID_typePlat=@ID_typePlat
RETURN
GO
/****** Object: StoredProcedure [dbo].[ModifierT_typeRepa] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[ModifierT_typeRepa]
@ID_typeRepa int,
@TR_nom varchar(50)
AS
IF(@ID_typeRepa IS NULL OR @ID_typeRepa=0)
RAISERROR('Identifiant requis !',16,1)
ELSE UPDATE T_typeRepa
SET TR_nom=@TR_nom
WHERE ID_typeRepa=@ID_typeRepa
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_beneficiaire] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_beneficiaire]
@Index VARCHAR(10)
AS
IF(@Index='B_nom') SELECT * FROM T_beneficiaire ORDER BY B_nom
ELSE IF(@Index='B_prenom') SELECT * FROM T_beneficiaire ORDER BY B_prenom
ELSE IF(@Index='B_anniversaire') SELECT * FROM T_beneficiaire ORDER BY B_anniversaire
ELSE SELECT * FROM T_beneficiaire ORDER BY ID_beneficiaire
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_beneficiaire_ID] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_beneficiaire_ID]
@ID_beneficiaire int
AS
IF(@ID_beneficiaire IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
SELECT ID_beneficiaire,B_nom,B_prenom,B_anniversaire,B_img
FROM T_beneficiaire
WHERE @ID_beneficiaire=ID_beneficiaire
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_equipe] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_equipe]
@Index VARCHAR(10)
AS
IF(@Index='E_nom') SELECT * FROM T_equipe ORDER BY E_nom
ELSE IF(@Index='E_point') SELECT * FROM T_equipe ORDER BY E_point
ELSE IF(@Index='ID_evenement') SELECT * FROM T_equipe ORDER BY ID_evenement
ELSE SELECT * FROM T_equipe ORDER BY ID_equipe
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_equipe_ID] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_equipe_ID]
@ID_equipe int
AS
IF(@ID_equipe IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
SELECT ID_equipe,E_nom,E_point,ID_evenement
FROM T_equipe
WHERE @ID_equipe=ID_equipe
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_event] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_event]
@Index VARCHAR(10)
AS
IF(@Index='E_date') SELECT * FROM T_event ORDER BY E_date
ELSE IF(@Index='E_duree') SELECT * FROM T_event ORDER BY E_duree
ELSE IF(@Index='ID_typeEvenement') SELECT * FROM T_event ORDER BY ID_typeEvenement
ELSE IF(@Index='ID_lieu') SELECT * FROM T_event ORDER BY ID_lieu
ELSE SELECT * FROM T_event ORDER BY ID_event
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_event_ID] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_event_ID]
@ID_event int
AS
IF(@ID_event IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
SELECT ID_event,E_date,E_duree,ID_typeEvenement,E_description,ID_lieu,E_Pic
FROM T_event
WHERE @ID_event=ID_event
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_lieu] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_lieu]
@Index VARCHAR(10)
AS
IF(@Index='L_nom') SELECT * FROM T_lieu ORDER BY L_nom
ELSE SELECT * FROM T_lieu ORDER BY ID_lieu
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_lieu_ID] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_lieu_ID]
@ID_lieu int
AS
IF(@ID_lieu IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
SELECT ID_lieu,L_nom
FROM T_lieu
WHERE @ID_lieu=ID_lieu
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_listParticipant] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_listParticipant]
@Index VARCHAR(10)
AS
IF(@Index='ID_equipe') SELECT * FROM T_listParticipant ORDER BY ID_equipe
ELSE IF(@Index='ID_benificiaire') SELECT * FROM T_listParticipant ORDER BY ID_benificiaire
ELSE SELECT * FROM T_listParticipant ORDER BY ID_LP
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_listParticipant_ID] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_listParticipant_ID]
@ID_LP int
AS
IF(@ID_LP IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
SELECT ID_LP,ID_equipe,ID_benificiaire
FROM T_listParticipant
WHERE @ID_LP=ID_LP
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_listPlat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_listPlat]
@Index VARCHAR(10)
AS
IF(@Index='ID_repa') SELECT * FROM T_listPlat ORDER BY ID_repa
ELSE IF(@Index='ID_plat') SELECT * FROM T_listPlat ORDER BY ID_plat
ELSE SELECT * FROM T_listPlat ORDER BY ID_listPlat
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_listPlat_ID] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_listPlat_ID]
@ID_listPlat int
AS
IF(@ID_listPlat IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
SELECT ID_listPlat,ID_repa,ID_plat
FROM T_listPlat
WHERE @ID_listPlat=ID_listPlat
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_plat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_plat]
@Index VARCHAR(10)
AS
IF(@Index='P_nom') SELECT * FROM T_plat ORDER BY P_nom
ELSE IF(@Index='ID_typePlat') SELECT * FROM T_plat ORDER BY ID_typePlat
ELSE SELECT * FROM T_plat ORDER BY ID_plat
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_plat_ID] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_plat_ID]
@ID_plat int
AS
IF(@ID_plat IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
SELECT ID_plat,P_nom,P_img,ID_typePlat
FROM T_plat
WHERE @ID_plat=ID_plat
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_repa] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_repa]
@Index VARCHAR(10)
AS
IF(@Index='ID_listPlat') SELECT * FROM T_repa ORDER BY ID_listPlat
ELSE IF(@Index='ID_typeRepa') SELECT * FROM T_repa ORDER BY ID_typeRepa
ELSE SELECT * FROM T_repa ORDER BY ID_repa
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_repa_ID] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_repa_ID]
@ID_repa int
AS
IF(@ID_repa IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
SELECT ID_repa,ID_listPlat,ID_typeRepa,R_Date
FROM T_repa
WHERE @ID_repa=ID_repa
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_typeEvenement] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_typeEvenement]
@Index VARCHAR(10)
AS
IF(@Index='TE_nom') SELECT * FROM T_typeEvenement ORDER BY TE_nom
ELSE SELECT * FROM T_typeEvenement ORDER BY ID_typeEvenement
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_typeEvenement_ID] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_typeEvenement_ID]
@ID_typeEvenement int
AS
IF(@ID_typeEvenement IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
SELECT ID_typeEvenement,TE_nom
FROM T_typeEvenement
WHERE @ID_typeEvenement=ID_typeEvenement
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_typePlat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_typePlat]
@Index VARCHAR(10)
AS
IF(@Index='TP_nom') SELECT * FROM T_typePlat ORDER BY TP_nom
ELSE SELECT * FROM T_typePlat ORDER BY ID_typePlat
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_typePlat_ID] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_typePlat_ID]
@ID_typePlat int
AS
IF(@ID_typePlat IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
SELECT ID_typePlat,TP_nom
FROM T_typePlat
WHERE @ID_typePlat=ID_typePlat
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_typeRepa] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_typeRepa]
@Index VARCHAR(10)
AS
IF(@Index='TR_nom') SELECT * FROM T_typeRepa ORDER BY TR_nom
ELSE SELECT * FROM T_typeRepa ORDER BY ID_typeRepa
RETURN
GO
/****** Object: StoredProcedure [dbo].[SelectionnerT_typeRepa_ID] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SelectionnerT_typeRepa_ID]
@ID_typeRepa int
AS
IF(@ID_typeRepa IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
SELECT ID_typeRepa,TR_nom
FROM T_typeRepa
WHERE @ID_typeRepa=ID_typeRepa
RETURN
GO
/****** Object: StoredProcedure [dbo].[SupprimerT_beneficiaire] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SupprimerT_beneficiaire]
@ID_beneficiaire int
AS
IF(@ID_beneficiaire IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
DELETE FROM T_beneficiaire WHERE @ID_beneficiaire=ID_beneficiaire
RETURN
GO
/****** Object: StoredProcedure [dbo].[SupprimerT_equipe] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SupprimerT_equipe]
@ID_equipe int
AS
IF(@ID_equipe IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
DELETE FROM T_equipe WHERE @ID_equipe=ID_equipe
RETURN
GO
/****** Object: StoredProcedure [dbo].[SupprimerT_event] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SupprimerT_event]
@ID_event int
AS
IF(@ID_event IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
DELETE FROM T_event WHERE @ID_event=ID_event
RETURN
GO
/****** Object: StoredProcedure [dbo].[SupprimerT_lieu] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SupprimerT_lieu]
@ID_lieu int
AS
IF(@ID_lieu IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
DELETE FROM T_lieu WHERE @ID_lieu=ID_lieu
RETURN
GO
/****** Object: StoredProcedure [dbo].[SupprimerT_listParticipant] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SupprimerT_listParticipant]
@ID_LP int
AS
IF(@ID_LP IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
DELETE FROM T_listParticipant WHERE @ID_LP=ID_LP
RETURN
GO
/****** Object: StoredProcedure [dbo].[SupprimerT_listPlat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SupprimerT_listPlat]
@ID_listPlat int
AS
IF(@ID_listPlat IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
DELETE FROM T_listPlat WHERE @ID_listPlat=ID_listPlat
RETURN
GO
/****** Object: StoredProcedure [dbo].[SupprimerT_plat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SupprimerT_plat]
@ID_plat int
AS
IF(@ID_plat IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
DELETE FROM T_plat WHERE @ID_plat=ID_plat
RETURN
GO
/****** Object: StoredProcedure [dbo].[SupprimerT_repa] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SupprimerT_repa]
@ID_repa int
AS
IF(@ID_repa IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
DELETE FROM T_repa WHERE @ID_repa=ID_repa
RETURN
GO
/****** Object: StoredProcedure [dbo].[SupprimerT_typeEvenement] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SupprimerT_typeEvenement]
@ID_typeEvenement int
AS
IF(@ID_typeEvenement IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
DELETE FROM T_typeEvenement WHERE @ID_typeEvenement=ID_typeEvenement
RETURN
GO
/****** Object: StoredProcedure [dbo].[SupprimerT_typePlat] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SupprimerT_typePlat]
@ID_typePlat int
AS
IF(@ID_typePlat IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
DELETE FROM T_typePlat WHERE @ID_typePlat=ID_typePlat
RETURN
GO
/****** Object: StoredProcedure [dbo].[SupprimerT_typeRepa] Script Date: 19-01-19 17:02:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SupprimerT_typeRepa]
@ID_typeRepa int
AS
IF(@ID_typeRepa IS NULL)
RAISERROR('Identifiant requis !',16,1)
ELSE
DELETE FROM T_typeRepa WHERE @ID_typeRepa=ID_typeRepa
RETURN
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
NumPanes = 4
Configuration = "(H (1[58] 4[16] 2[18] 3) )"
End
Begin PaneConfiguration = 1
NumPanes = 3
Configuration = "(H (1 [50] 4 [25] 3))"
End
Begin PaneConfiguration = 2
NumPanes = 3
Configuration = "(H (1 [50] 2 [25] 3))"
End
Begin PaneConfiguration = 3
NumPanes = 3
Configuration = "(H (4 [30] 2 [40] 3))"
End
Begin PaneConfiguration = 4
NumPanes = 2
Configuration = "(H (1 [56] 3))"
End
Begin PaneConfiguration = 5
NumPanes = 2
Configuration = "(H (2 [66] 3))"
End
Begin PaneConfiguration = 6
NumPanes = 2
Configuration = "(H (4 [50] 3))"
End
Begin PaneConfiguration = 7
NumPanes = 1
Configuration = "(V (3))"
End
Begin PaneConfiguration = 8
NumPanes = 3
Configuration = "(H (1[56] 4[18] 2) )"
End
Begin PaneConfiguration = 9
NumPanes = 2
Configuration = "(H (1 [75] 4))"
End
Begin PaneConfiguration = 10
NumPanes = 2
Configuration = "(H (1[66] 2) )"
End
Begin PaneConfiguration = 11
NumPanes = 2
Configuration = "(H (4 [60] 2))"
End
Begin PaneConfiguration = 12
NumPanes = 1
Configuration = "(H (1) )"
End
Begin PaneConfiguration = 13
NumPanes = 1
Configuration = "(V (4))"
End
Begin PaneConfiguration = 14
NumPanes = 1
Configuration = "(V (2))"
End
ActivePaneConfig = 0
End
Begin DiagramPane =
Begin Origin =
Top = 0
Left = 0
End
Begin Tables =
Begin Table = "T_beneficiaire"
Begin Extent =
Top = 11
Left = 793
Bottom = 141
Right = 1002
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "T_equipe"
Begin Extent =
Top = 6
Left = 307
Bottom = 136
Right = 516
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "T_lieu"
Begin Extent =
Top = 154
Left = 337
Bottom = 250
Right = 546
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "T_listParticipant"
Begin Extent =
Top = 43
Left = 548
Bottom = 156
Right = 757
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "T_typeEvenement"
Begin Extent =
Top = 267
Left = 299
Bottom = 363
Right = 508
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "T_event"
Begin Extent =
Top = 7
Left = 52
Bottom = 137
Right = 261
End
DisplayFlags = 280
TopColumn = 0
End
End
End
Begin SQLPane =
End
Begin DataPane =
Begin ParameterDefaults = ""
End
End
Begin CriteriaPane =
Begin ColumnWidths = 11
Colu' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'event'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'mn = 1440
Alias = 900
Table = 2715
Output = 720
Append = 1400
NewValue = 1170
SortType = 1350
SortOrder = 1410
GroupBy = 1350
Filter = 1350
Or = 1350
Or = 1350
Or = 1350
End
End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'event'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'event'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
NumPanes = 4
Configuration = "(H (1[51] 4[12] 2[27] 3) )"
End
Begin PaneConfiguration = 1
NumPanes = 3
Configuration = "(H (1 [50] 4 [25] 3))"
End
Begin PaneConfiguration = 2
NumPanes = 3
Configuration = "(H (1 [50] 2 [25] 3))"
End
Begin PaneConfiguration = 3
NumPanes = 3
Configuration = "(H (4 [30] 2 [40] 3))"
End
Begin PaneConfiguration = 4
NumPanes = 2
Configuration = "(H (1 [56] 3))"
End
Begin PaneConfiguration = 5
NumPanes = 2
Configuration = "(H (2 [66] 3))"
End
Begin PaneConfiguration = 6
NumPanes = 2
Configuration = "(H (4 [50] 3))"
End
Begin PaneConfiguration = 7
NumPanes = 1
Configuration = "(V (3))"
End
Begin PaneConfiguration = 8
NumPanes = 3
Configuration = "(H (1[56] 4[18] 2) )"
End
Begin PaneConfiguration = 9
NumPanes = 2
Configuration = "(H (1 [75] 4))"
End
Begin PaneConfiguration = 10
NumPanes = 2
Configuration = "(H (1[66] 2) )"
End
Begin PaneConfiguration = 11
NumPanes = 2
Configuration = "(H (4 [60] 2))"
End
Begin PaneConfiguration = 12
NumPanes = 1
Configuration = "(H (1) )"
End
Begin PaneConfiguration = 13
NumPanes = 1
Configuration = "(V (4))"
End
Begin PaneConfiguration = 14
NumPanes = 1
Configuration = "(V (2))"
End
ActivePaneConfig = 0
End
Begin DiagramPane =
Begin Origin =
Top = 0
Left = 0
End
Begin Tables =
Begin Table = "T_listPlat"
Begin Extent =
Top = 16
Left = 299
Bottom = 129
Right = 508
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "T_repa"
Begin Extent =
Top = 8
Left = 52
Bottom = 121
Right = 261
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "T_typePlat"
Begin Extent =
Top = 14
Left = 764
Bottom = 110
Right = 973
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "T_typeRepa"
Begin Extent =
Top = 170
Left = 303
Bottom = 266
Right = 512
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "T_plat"
Begin Extent =
Top = 2
Left = 530
Bottom = 123
Right = 739
End
DisplayFlags = 280
TopColumn = 0
End
End
End
Begin SQLPane =
End
Begin DataPane =
Begin ParameterDefaults = ""
End
End
Begin CriteriaPane =
Begin ColumnWidths = 11
Column = 1440
Alias = 900
Table = 1170
Output = 720
Append = 1400
NewValue = 1170
SortType = 1350
SortOrder = 1410
GroupBy = 1350
Filter = 1350
Or = 1350
Or = 1350
Or' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'repas'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N' = 1350
End
End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'repas'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'repas'
GO
USE [master]
GO
ALTER DATABASE [ProjetThe] SET READ_WRITE
GO