[MYSQL] Problème de requête sur mon serveur
ledocdu06
Messages postés
3
Date d'inscription
Statut
Membre
Dernière intervention
-
cobax Messages postés 33 Date d'inscription Statut Membre Dernière intervention -
cobax Messages postés 33 Date d'inscription Statut Membre Dernière intervention -
Bonjour, je tiens tout d'abord à m'excuser pour mon manque de connaissance dans le domaine.
Je souhaitais, à l'aide du logiciel GroupCalendar, synchroniser plusieurs calendriers Outlook.
Le logiciel fonctionne selon le principe d'une base de données partagée, qui est, au choix, soit une base Access, soit une base SQL. Le problème étant que les différents calendriers Outlook ne se trouvent pas tous sur le même réseau local, auquel cas je serais passé par une simple base de donnée Access et après plusieurs essais en local, cela fonctionne parfaitement.
Mais cela dit, dans la situation dans laquelle je me trouve, il faut que je passe par un serveur SQL qui héberge donc ma base SQL afin de la partager parmi tous les calendriers Outlook à partager.
Je possède un espace perso chez Free et j'avais la possibilité d'avoir un accès vers un serveur SQL avec une administration possible grâce à phpMyAdmin et un accès à l'adresse suivante : http://sql.free.fr en me connectant avec mon identifiant et mon MDP Free.
J'ai donc activé cette base de données et pour en revenir à GroupCalendar, ce dernier possède, dans le répertoire d'installation, un script SQL à exécuter sur la base concernée.
Le problème étant que le script ne fonctionne pas lorsque je l'exécute sur ma base vierge.
J'avoue n'y connaitre vraiment pas grand chose en base de données et surtout en gestion de base de données donc j'aimerais savoir si je dois faire quelque chose de spécial avant d'exécuter le script ou si l'erreur vient du script en soi.
Je vous poste ci-dessous le contenu du script.
Si une âme charitable veut bien consacrer quelques petites minutes pour étudier le script et me dire si l'erreur vient du fait que je sois un abruti fini ou du fait que le script contient des erreurs, je lui en serais infiniment reconnaissant :
//////////////DEBUT DU SCRIPT///////
CREATE TABLE [dbo].[TB_Appointments] (
[ID] [int] IDENTITY (1, 1) NOT NULL ,
[ItemID] [varchar] (15) NULL ,
[EntryID] [text] NULL ,
[Start] [datetime] NULL ,
[End] [datetime] NULL ,
[Subject] [varchar] (255) NULL ,
[Body] [text] NULL ,
[Owner] [varchar] (255) NULL ,
[Item] [varchar] (255) NULL ,
[Actions] [int] NULL ,
[AllDayEvent] [int] NOT NULL ,
[BillingInformation] [varchar] (255) NULL ,
[BusyStatus] [int] NULL ,
[Categories] [text] NULL ,
[Companies] [varchar] (255) NULL ,
[ConferenceServerAllowExternal] [int] NOT NULL ,
[ConferenceServerPassword] [varchar] (255) NULL ,
[ConversationIndex] [text] NULL ,
[ConversationTopic] [varchar] (255) NULL ,
[Importance] [int] NULL ,
[IsOnlineMeeting] [int] NOT NULL ,
[IsRecurring] [int] NOT NULL ,
[Links] [int] NULL ,
[LinkIDS] [text] NULL ,
[Location] [varchar] (255) NULL ,
[MeetingStatus] [varchar] (255) NULL ,
[MessageClass] [varchar] (255) NULL ,
[Mileage] [varchar] (255) NULL ,
[NetMeetingAutoStart] [int] NOT NULL ,
[NetMeetingDocPathName] [varchar] (255) NULL ,
[NetMeetingOrganizerAlias] [varchar] (255) NULL ,
[NetMeetingServer] [varchar] (255) NULL ,
[NetMeetingType] [int] NULL ,
[NetShowURL] [varchar] (255) NULL ,
[NoAging] [int] NOT NULL ,
[OptionalAttendees] [text] NULL ,
[Organizer] [varchar] (255) NULL ,
[Recipients] [int] NULL ,
[RecipientsMailAddress] [text] NULL ,
[RecurrenceState] [int] NULL ,
[ReminderMinutesBeforeStart] [int] NULL ,
[ReminderOverrideDefault] [int] NOT NULL ,
[ReminderPlaySound] [int] NOT NULL ,
[ReminderSet] [int] NOT NULL ,
[ReminderSoundFile] [varchar] (255) NULL ,
[ReplyTime] [datetime] NULL ,
[RequiredAttendees] [text] NULL ,
[Resources] [varchar] (255) NULL ,
[ResponseRequested] [int] NOT NULL ,
[ResponseStatus] [int] NULL ,
[Sensitivity] [int] NULL ,
[Unread] [int] NOT NULL ,
[DayOfMonth] [int] NULL ,
[DayOfWeekMask] [int] NULL ,
[Duration] [int] NULL ,
[StartTime] [datetime] NULL ,
[EndTime] [datetime] NULL ,
[Exceptions] [int] NULL ,
[Instance] [int] NULL ,
[Interval] [int] NULL ,
[MonthOfYear] [int] NULL ,
[NoEndDate] [int] NOT NULL ,
[Occurrences] [int] NULL ,
[PatternEndDate] [datetime] NULL ,
[PatternStartDate] [datetime] NULL ,
[RecurrenceType] [int] NULL ,
[Regenerate] [int] NOT NULL ,
[Deleted] [int] NOT NULL ,
[OriginalDate] [datetime] NULL ,
[Department] [varchar] (255) NULL ,
[Gen_Body] [int] NULL ,
[Gen_Categories] [int] NULL ,
[Gen_ConversationIndex] [int] NULL ,
[Gen_EntryID] [int] NULL ,
[Gen_LinkIDS] [int] NULL ,
[Gen_OptionalAttendees] [int] NULL ,
[Gen_RecipientsMailAddress] [int] NULL ,
[Gen_RequiredAttendees] [int] NULL ,
[s_ColLineage] [image] NULL ,
[s_Generation] [int] NULL ,
[s_GUID] [uniqueidentifier] NULL ,
[s_Lineage] [image] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [dbo].[TB_Users] (
[User] [varchar] (50) NULL ,
[Department] [varchar] (50) NULL ,
[s_ColLineage] [image] NULL ,
[s_Generation] [int] IDENTITY (1, 1) NOT NULL ,
[s_GUID] [uniqueidentifier] NULL ,
[s_Lineage] [image] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[TB_Appointments] WITH NOCHECK ADD
CONSTRAINT [DF_TB_Appointments_AllDayEvent] DEFAULT (0) FOR [AllDayEvent],
CONSTRAINT [DF_TB_Appointments_ConferenceServerAllowExternal] DEFAULT (0) FOR [ConferenceServerAllowExternal],
CONSTRAINT [DF_TB_Appointments_IsOnlineMeeting] DEFAULT (0) FOR [IsOnlineMeeting],
CONSTRAINT [DF_TB_Appointments_IsRecurring] DEFAULT (0) FOR [IsRecurring],
CONSTRAINT [DF_TB_Appointments_NetMeetingAutoStart] DEFAULT (0) FOR [NetMeetingAutoStart],
CONSTRAINT [DF_TB_Appointments_NoAging] DEFAULT (0) FOR [NoAging],
CONSTRAINT [DF_TB_Appointments_ReminderOverrideDefault] DEFAULT (0) FOR [ReminderOverrideDefault],
CONSTRAINT [DF_TB_Appointments_ReminderPlaySound] DEFAULT (0) FOR [ReminderPlaySound],
CONSTRAINT [DF_TB_Appointments_ReminderSet] DEFAULT (0) FOR [ReminderSet],
CONSTRAINT [DF_TB_Appointments_ResponseRequested] DEFAULT (0) FOR [ResponseRequested],
CONSTRAINT [DF_TB_Appointments_Unread] DEFAULT (0) FOR [Unread],
CONSTRAINT [DF_TB_Appointments_NoEndDate] DEFAULT (0) FOR [NoEndDate],
CONSTRAINT [DF_TB_Appointments_Regenerate] DEFAULT (0) FOR [Regenerate],
CONSTRAINT [DF_TB_Appointments_Deleted] DEFAULT (0) FOR [Deleted],
CONSTRAINT [PK_TB_Appointments] PRIMARY KEY NONCLUSTERED
(
[ID]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TB_Users] WITH NOCHECK ADD
CONSTRAINT [PK_TB_Users] PRIMARY KEY NONCLUSTERED
(
[s_Generation]
) ON [PRIMARY]
GO
CREATE INDEX [ordate] ON [dbo].[TB_Appointments]([OriginalDate], [Item]) ON [PRIMARY]
GO
CREATE INDEX [IX_TB_Appointments] ON [dbo].[TB_Appointments]([ItemID]) ON [PRIMARY]
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procSpecificException
(@strID varchar(255),@EDate datetime,@OnlyDate datetime)
AS
SELECT *
From TB_Appointments
WHERE ItemID = @strID AND Item = 'Exception' AND
(
OriginalDate = @EDate
or
OriginalDate = @OnlyDate
)
order by ID
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procAllOwners
AS
SELECT Owner FROM TB_Appointments
GROUP BY Owner
HAVING ( Owner Is Not Null )
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procID ( @strID varchar(255) )
AS
SELECT *
From TB_Appointments
WHERE ItemID = @strID
order by ID
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procItem ( @strID varchar(255) )
AS
SELECT *
From TB_Appointments
WHERE ItemID = @strID AND Item = 'Item'
order by ID
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procOwnersOfSpecificDepartment (@Department varchar(255) )
AS
SELECT Owner FROM TB_Appointments
WHERE Department = @Department
GROUP BY Owner
HAVING ( Owner Is Not Null )
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procPatern ( @strID varchar(255) )
AS
SELECT *
From TB_Appointments
WHERE ItemID = @strID AND Item = 'Pattern'
order by ID
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
//////////////////////FIN DU SCRIPT/////////////////////////
Je vous remercie mille fois par avance.
Je souhaitais, à l'aide du logiciel GroupCalendar, synchroniser plusieurs calendriers Outlook.
Le logiciel fonctionne selon le principe d'une base de données partagée, qui est, au choix, soit une base Access, soit une base SQL. Le problème étant que les différents calendriers Outlook ne se trouvent pas tous sur le même réseau local, auquel cas je serais passé par une simple base de donnée Access et après plusieurs essais en local, cela fonctionne parfaitement.
Mais cela dit, dans la situation dans laquelle je me trouve, il faut que je passe par un serveur SQL qui héberge donc ma base SQL afin de la partager parmi tous les calendriers Outlook à partager.
Je possède un espace perso chez Free et j'avais la possibilité d'avoir un accès vers un serveur SQL avec une administration possible grâce à phpMyAdmin et un accès à l'adresse suivante : http://sql.free.fr en me connectant avec mon identifiant et mon MDP Free.
J'ai donc activé cette base de données et pour en revenir à GroupCalendar, ce dernier possède, dans le répertoire d'installation, un script SQL à exécuter sur la base concernée.
Le problème étant que le script ne fonctionne pas lorsque je l'exécute sur ma base vierge.
J'avoue n'y connaitre vraiment pas grand chose en base de données et surtout en gestion de base de données donc j'aimerais savoir si je dois faire quelque chose de spécial avant d'exécuter le script ou si l'erreur vient du script en soi.
Je vous poste ci-dessous le contenu du script.
Si une âme charitable veut bien consacrer quelques petites minutes pour étudier le script et me dire si l'erreur vient du fait que je sois un abruti fini ou du fait que le script contient des erreurs, je lui en serais infiniment reconnaissant :
//////////////DEBUT DU SCRIPT///////
CREATE TABLE [dbo].[TB_Appointments] (
[ID] [int] IDENTITY (1, 1) NOT NULL ,
[ItemID] [varchar] (15) NULL ,
[EntryID] [text] NULL ,
[Start] [datetime] NULL ,
[End] [datetime] NULL ,
[Subject] [varchar] (255) NULL ,
[Body] [text] NULL ,
[Owner] [varchar] (255) NULL ,
[Item] [varchar] (255) NULL ,
[Actions] [int] NULL ,
[AllDayEvent] [int] NOT NULL ,
[BillingInformation] [varchar] (255) NULL ,
[BusyStatus] [int] NULL ,
[Categories] [text] NULL ,
[Companies] [varchar] (255) NULL ,
[ConferenceServerAllowExternal] [int] NOT NULL ,
[ConferenceServerPassword] [varchar] (255) NULL ,
[ConversationIndex] [text] NULL ,
[ConversationTopic] [varchar] (255) NULL ,
[Importance] [int] NULL ,
[IsOnlineMeeting] [int] NOT NULL ,
[IsRecurring] [int] NOT NULL ,
[Links] [int] NULL ,
[LinkIDS] [text] NULL ,
[Location] [varchar] (255) NULL ,
[MeetingStatus] [varchar] (255) NULL ,
[MessageClass] [varchar] (255) NULL ,
[Mileage] [varchar] (255) NULL ,
[NetMeetingAutoStart] [int] NOT NULL ,
[NetMeetingDocPathName] [varchar] (255) NULL ,
[NetMeetingOrganizerAlias] [varchar] (255) NULL ,
[NetMeetingServer] [varchar] (255) NULL ,
[NetMeetingType] [int] NULL ,
[NetShowURL] [varchar] (255) NULL ,
[NoAging] [int] NOT NULL ,
[OptionalAttendees] [text] NULL ,
[Organizer] [varchar] (255) NULL ,
[Recipients] [int] NULL ,
[RecipientsMailAddress] [text] NULL ,
[RecurrenceState] [int] NULL ,
[ReminderMinutesBeforeStart] [int] NULL ,
[ReminderOverrideDefault] [int] NOT NULL ,
[ReminderPlaySound] [int] NOT NULL ,
[ReminderSet] [int] NOT NULL ,
[ReminderSoundFile] [varchar] (255) NULL ,
[ReplyTime] [datetime] NULL ,
[RequiredAttendees] [text] NULL ,
[Resources] [varchar] (255) NULL ,
[ResponseRequested] [int] NOT NULL ,
[ResponseStatus] [int] NULL ,
[Sensitivity] [int] NULL ,
[Unread] [int] NOT NULL ,
[DayOfMonth] [int] NULL ,
[DayOfWeekMask] [int] NULL ,
[Duration] [int] NULL ,
[StartTime] [datetime] NULL ,
[EndTime] [datetime] NULL ,
[Exceptions] [int] NULL ,
[Instance] [int] NULL ,
[Interval] [int] NULL ,
[MonthOfYear] [int] NULL ,
[NoEndDate] [int] NOT NULL ,
[Occurrences] [int] NULL ,
[PatternEndDate] [datetime] NULL ,
[PatternStartDate] [datetime] NULL ,
[RecurrenceType] [int] NULL ,
[Regenerate] [int] NOT NULL ,
[Deleted] [int] NOT NULL ,
[OriginalDate] [datetime] NULL ,
[Department] [varchar] (255) NULL ,
[Gen_Body] [int] NULL ,
[Gen_Categories] [int] NULL ,
[Gen_ConversationIndex] [int] NULL ,
[Gen_EntryID] [int] NULL ,
[Gen_LinkIDS] [int] NULL ,
[Gen_OptionalAttendees] [int] NULL ,
[Gen_RecipientsMailAddress] [int] NULL ,
[Gen_RequiredAttendees] [int] NULL ,
[s_ColLineage] [image] NULL ,
[s_Generation] [int] NULL ,
[s_GUID] [uniqueidentifier] NULL ,
[s_Lineage] [image] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [dbo].[TB_Users] (
[User] [varchar] (50) NULL ,
[Department] [varchar] (50) NULL ,
[s_ColLineage] [image] NULL ,
[s_Generation] [int] IDENTITY (1, 1) NOT NULL ,
[s_GUID] [uniqueidentifier] NULL ,
[s_Lineage] [image] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[TB_Appointments] WITH NOCHECK ADD
CONSTRAINT [DF_TB_Appointments_AllDayEvent] DEFAULT (0) FOR [AllDayEvent],
CONSTRAINT [DF_TB_Appointments_ConferenceServerAllowExternal] DEFAULT (0) FOR [ConferenceServerAllowExternal],
CONSTRAINT [DF_TB_Appointments_IsOnlineMeeting] DEFAULT (0) FOR [IsOnlineMeeting],
CONSTRAINT [DF_TB_Appointments_IsRecurring] DEFAULT (0) FOR [IsRecurring],
CONSTRAINT [DF_TB_Appointments_NetMeetingAutoStart] DEFAULT (0) FOR [NetMeetingAutoStart],
CONSTRAINT [DF_TB_Appointments_NoAging] DEFAULT (0) FOR [NoAging],
CONSTRAINT [DF_TB_Appointments_ReminderOverrideDefault] DEFAULT (0) FOR [ReminderOverrideDefault],
CONSTRAINT [DF_TB_Appointments_ReminderPlaySound] DEFAULT (0) FOR [ReminderPlaySound],
CONSTRAINT [DF_TB_Appointments_ReminderSet] DEFAULT (0) FOR [ReminderSet],
CONSTRAINT [DF_TB_Appointments_ResponseRequested] DEFAULT (0) FOR [ResponseRequested],
CONSTRAINT [DF_TB_Appointments_Unread] DEFAULT (0) FOR [Unread],
CONSTRAINT [DF_TB_Appointments_NoEndDate] DEFAULT (0) FOR [NoEndDate],
CONSTRAINT [DF_TB_Appointments_Regenerate] DEFAULT (0) FOR [Regenerate],
CONSTRAINT [DF_TB_Appointments_Deleted] DEFAULT (0) FOR [Deleted],
CONSTRAINT [PK_TB_Appointments] PRIMARY KEY NONCLUSTERED
(
[ID]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TB_Users] WITH NOCHECK ADD
CONSTRAINT [PK_TB_Users] PRIMARY KEY NONCLUSTERED
(
[s_Generation]
) ON [PRIMARY]
GO
CREATE INDEX [ordate] ON [dbo].[TB_Appointments]([OriginalDate], [Item]) ON [PRIMARY]
GO
CREATE INDEX [IX_TB_Appointments] ON [dbo].[TB_Appointments]([ItemID]) ON [PRIMARY]
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procSpecificException
(@strID varchar(255),@EDate datetime,@OnlyDate datetime)
AS
SELECT *
From TB_Appointments
WHERE ItemID = @strID AND Item = 'Exception' AND
(
OriginalDate = @EDate
or
OriginalDate = @OnlyDate
)
order by ID
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procAllOwners
AS
SELECT Owner FROM TB_Appointments
GROUP BY Owner
HAVING ( Owner Is Not Null )
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procID ( @strID varchar(255) )
AS
SELECT *
From TB_Appointments
WHERE ItemID = @strID
order by ID
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procItem ( @strID varchar(255) )
AS
SELECT *
From TB_Appointments
WHERE ItemID = @strID AND Item = 'Item'
order by ID
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procOwnersOfSpecificDepartment (@Department varchar(255) )
AS
SELECT Owner FROM TB_Appointments
WHERE Department = @Department
GROUP BY Owner
HAVING ( Owner Is Not Null )
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
CREATE PROCEDURE procPatern ( @strID varchar(255) )
AS
SELECT *
From TB_Appointments
WHERE ItemID = @strID AND Item = 'Pattern'
order by ID
GO
SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON
GO
//////////////////////FIN DU SCRIPT/////////////////////////
Je vous remercie mille fois par avance.
A voir également:
- [MYSQL] Problème de requête sur mon serveur
- Changer serveur dns - Guide
- Serveur de reception mail - Guide
- Serveur dns gratuit - Guide
- Mysql community server - Télécharger - Bases de données
- Serveur dns orange - Accueil - Guide box et connexion Internet