USE [Annuaire] GO /****** Object: Table [dbo].[Personnes] Script Date: 08/03/2017 14:42:29 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Personnes]( [Id] [uniqueidentifier] NOT NULL, [NumTitre] [smallint] NOT NULL, [Nom] [varchar](50) NOT NULL, [Prenom] [varchar](50) NOT NULL, [Telephone] [nchar](10) NOT NULL, CONSTRAINT [PK_Personnes] 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] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[Titres] Script Date: 08/03/2017 14:42:29 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Titres]( [NumTitre] [smallint] NOT NULL, [Titre] [varchar](50) NOT NULL, CONSTRAINT [PK_Titres] PRIMARY KEY CLUSTERED ( [NumTitre] 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 SET ANSI_PADDING OFF GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'06d06fdb-f9c9-4309-892e-00a2534b88e1', 1, N'Zettofret2', N'Mélanie2', N'0111111112') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'30f72e24-2f93-4079-93c0-0566e6ecc6ec', 6, N'Dallord', N'Homer', N'0123456789') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'576f935b-908e-42d0-b55d-130875ed7deb', 2, N'Pencuir', N'Leslie', N'0111111112') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'7a1ec223-3ac8-4fae-a2eb-23df22150229', 2, N'Fonfec', N'Sophie2', N'0123456789') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'96698298-7a42-4190-85ca-2a2b5e8d0f5f', 3, N'Héger', N'Yves', N'0120030405') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'8f03cd3c-2985-454f-a529-39aec0db0f04', 2, N'Boniadétos', N'Alice', N'0123456789') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'fdf50f2c-c086-491c-a009-3c49cadf6f9d', 1, N'Chaléchveux', N'Sarah', N'0102030406') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'2268425f-e47f-4ea4-b566-3cf1e89633e3', 5, N'El Krom', N'Nick', N'0123456789') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'0340717c-0a10-4cf6-9e82-44b2c96afe14', 3, N'Bistrot', N'Alfonso', N'0000000000') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'44e3a4fe-33d4-416d-a31e-4820a2bcb9bc', 5, N'Labrosse', N'Adam', N'1111111111') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'79b86639-ccb9-485c-ad8e-49167670be11', 2, N'Chaite', N'Barbie', N'0111111111') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'6ccd6359-0ad8-44cb-b31e-4949ca6aa0d3', 1, N'Fraichit', N'Sarah', N'0102030405') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'e59d8fc6-04e7-4a00-a377-50d128ff9c45', 5, N'Teurgeist', N'Paul', N'0123456789') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'b5488cc2-a187-450c-a949-5116152fa24b', 3, N'Auchon', N'Paul', N'0123456987') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'97437358-b23d-4c43-b559-6784d1d75e2d', 1, N'Fonalaï', N'Sophie', N'0123456789') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'7af69501-4c10-4862-b105-6b799d647df6', 3, N'Pourferlavéssel', N'Vladimir', N'4444444444') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'2c6e5688-908c-47c8-bda6-706cf1efc587', 5, N'Huilda', N'Rachid', N'0000000000') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'b71572b4-ff74-4ac3-bae4-7537f8debaeb', 1, N'Pencoton', N'Leslie', N'0123456789') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'3850330c-c5c6-4e10-b505-78ed09ff28ca', 3, N'Donctoilaba', N'Eddy', N'0000000000') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'822c7230-82c2-4d76-aec8-81592738c899', 3, N'Oukoi', N'Bill', N'2222222222') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'd41e34a9-8fe3-4d2b-bc85-838d76b47dc6', 1, N'Vesterstalone2', N'Cécile', N'0000000002') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'd3aff1b1-f717-427d-b9e6-876eeddce587', 3, N'Alavanillessivouplait+', N'Douglas', N'1111111111') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'0d53dd89-6503-4f9c-b635-8d9c0be2ddf3', 3, N'Covert', N'Harry', N'0000000000') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'd7d0258f-c0f6-4bc8-bf66-94768bc29d37', 1, N'Goudy', N'Debby', N'0000000000') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'6fcf6d6c-dedb-4f7a-95e5-97a982827873', 3, N'Mensoif', N'Gérard', N'123456700 ') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'dd918e25-dd2d-42f6-abaa-9cc513cc631a', 6, N'Ervitemeschaussettes', N'Jean-Philippe', N'0000000000') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'28c0b70d-da3e-4998-a561-a1d4c33ebda5', 3, N'Paslairsolidcesdeuxtoursla', N'Oussama', N'0000000000') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'e1aedeba-1e2d-43a9-9bd4-afae5e31acb0', 3, N'peticou', N'Justin', N'0000000000') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'fb021052-01b4-49ed-964b-b2bf9e48c8bf', 1, N'Scott', N'Debby', N'0000000000') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'59998079-7816-4d74-95a3-c345d590d076', 1, N'Danlapiscine', N'Anick', N'5678901234') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'28b1b4a7-37a7-41ca-b43c-c367448d4f22', 5, N'Danlapiscine', N'Jean', N'3456789012') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'60e1e133-af38-4420-ad9e-cadbadf7484d', 2, N'Feimal', N'Aïcha', N'0000000000') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'e5601378-6efc-4ce9-91f1-cb8e2fe0b536', 8, N'Tonnière', N'L''abbé', N'0123456780') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'e34fee08-fdd6-4071-b4b5-cfdfb818fef9', 2, N'Danlapiscine', N'Loanna', N'6789012345') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'9a137ecb-9b03-4265-a68f-d5e6714923cb', 9, N'Goler', N'Emeric', N'0000000000') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'74eb9afe-f7b3-4d83-873d-df3a3efd09b6', 3, N'Oukoi', N'Ted', N'1111111111') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'd3efcd25-c126-481d-a9bc-e2834778a61c', 1, N'Reizaladouzaine', N'Janette', N'9012345678') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'f8d5cd82-8be6-4e60-8458-e8d2b5450f5d', 1, N'Dumand', N'Henriette', N'0132456987') GO INSERT [dbo].[Personnes] ([Id], [NumTitre], [Nom], [Prenom], [Telephone]) VALUES (N'81b76094-6047-4a9c-8243-fe139c797a79', 3, N'Danlapiscine', N'Edouard', N'0111111111') GO INSERT [dbo].[Titres] ([NumTitre], [Titre]) VALUES (1, N'Madame') GO INSERT [dbo].[Titres] ([NumTitre], [Titre]) VALUES (2, N'Mademoiselle') GO INSERT [dbo].[Titres] ([NumTitre], [Titre]) VALUES (3, N'Monsieur') GO INSERT [dbo].[Titres] ([NumTitre], [Titre]) VALUES (4, N'Maître') GO INSERT [dbo].[Titres] ([NumTitre], [Titre]) VALUES (5, N'Docteur') GO INSERT [dbo].[Titres] ([NumTitre], [Titre]) VALUES (6, N'Professeur') GO INSERT [dbo].[Titres] ([NumTitre], [Titre]) VALUES (7, N'Son Altesse Sérénissime') GO INSERT [dbo].[Titres] ([NumTitre], [Titre]) VALUES (8, N'Monseigneur') GO INSERT [dbo].[Titres] ([NumTitre], [Titre]) VALUES (9, N'Monsieur le curé') GO INSERT [dbo].[Titres] ([NumTitre], [Titre]) VALUES (10, N'Sa Sainteté') GO ALTER TABLE [dbo].[Personnes] WITH CHECK ADD CONSTRAINT [Personnes_Titres] FOREIGN KEY([NumTitre]) REFERENCES [dbo].[Titres] ([NumTitre]) GO ALTER TABLE [dbo].[Personnes] CHECK CONSTRAINT [Personnes_Titres] GO