USE [HeuristicLab.OKB] GO /****** Object: Table [dbo].[ProblemClass] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ProblemClass]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Name] [nvarchar](200) NOT NULL, [Description] [nvarchar](max) NULL, CONSTRAINT [PK_ProblemClass_Id] 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], CONSTRAINT [UQ_ProblemClass_Name] UNIQUE NONCLUSTERED ( [Name] 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 IDENTITY_INSERT [dbo].[ProblemClass] ON INSERT [dbo].[ProblemClass] ([Id], [Name], [Description]) VALUES (1, N'Unknown', N'Unknown or undefined problem class.') SET IDENTITY_INSERT [dbo].[ProblemClass] OFF /****** Object: Table [dbo].[BinaryValue] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[BinaryValue]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Value] [varbinary](max) NOT NULL, CONSTRAINT [PK_BinaryValue_Id] 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].[AlgorithmClass] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[AlgorithmClass]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Name] [nvarchar](200) NOT NULL, [Description] [nvarchar](max) NULL, CONSTRAINT [PK_AlgorithmClass_Id] 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], CONSTRAINT [UQ_AlgorithmClass_Name] UNIQUE NONCLUSTERED ( [Name] 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 IDENTITY_INSERT [dbo].[AlgorithmClass] ON INSERT [dbo].[AlgorithmClass] ([Id], [Name], [Description]) VALUES (1, N'Unknown', N'Unknown or undefined algorithm class.') SET IDENTITY_INSERT [dbo].[AlgorithmClass] OFF /****** Object: Table [dbo].[Platform] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Platform]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Name] [nvarchar](200) NOT NULL, [Description] [nvarchar](max) NULL, CONSTRAINT [PK_Platform_Id] 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], CONSTRAINT [UQ_Platform_Name] UNIQUE NONCLUSTERED ( [Name] 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 IDENTITY_INSERT [dbo].[Platform] ON INSERT [dbo].[Platform] ([Id], [Name], [Description]) VALUES (1, N'Unknown', N'Unknown or undefined platform.') INSERT [dbo].[Platform] ([Id], [Name], [Description]) VALUES (2, N'HeuristicLab 3.3', NULL) SET IDENTITY_INSERT [dbo].[Platform] OFF /****** Object: Table [dbo].[DataType] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[DataType]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [PlatformId] [bigint] NOT NULL, [Name] [nvarchar](max) NOT NULL, [TypeName] [nvarchar](max) NOT NULL, CONSTRAINT [PK_DataType_Id] 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 /****** Object: Table [dbo].[Algorithm] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Algorithm]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [AlgorithmClassId] [bigint] NOT NULL, [PlatformId] [bigint] NOT NULL, [DataTypeId] [bigint] NOT NULL, [BinaryValueId] [bigint] NOT NULL, [Name] [nvarchar](200) NOT NULL, [Description] [nvarchar](max) NULL, CONSTRAINT [PK_Algorithm_Id] 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], CONSTRAINT [UQ_Algorithm_Name_PlatformId] UNIQUE NONCLUSTERED ( [Name] ASC, [PlatformId] 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 /****** Object: Table [dbo].[Problem] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Problem]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [ProblemClassId] [bigint] NOT NULL, [PlatformId] [bigint] NOT NULL, [DataTypeId] [bigint] NOT NULL, [BinaryValueId] [bigint] NOT NULL, [Name] [nvarchar](200) NOT NULL, [Description] [nvarchar](max) NULL, CONSTRAINT [PK_Problem_Id] 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], CONSTRAINT [UQ_Problem_Name_PlatformId] UNIQUE NONCLUSTERED ( [Name] ASC, [PlatformId] 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 /****** Object: Table [dbo].[ProblemUser] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[ProblemUser]( [ProblemId] [bigint] NOT NULL, [UserId] [uniqueidentifier] NOT NULL, CONSTRAINT [PK_ProblemUser_ProblemId_UserId] PRIMARY KEY CLUSTERED ( [ProblemId] ASC, [UserId] 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 /****** Object: Table [dbo].[Experiment] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Experiment]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [AlgorithmId] [bigint] NOT NULL, [ProblemId] [bigint] NOT NULL, CONSTRAINT [PK_Experiment_Id] 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 CREATE NONCLUSTERED INDEX [IX_Experiment_AlgorithmId_ProblemId] ON [dbo].[Experiment] ( [AlgorithmId] ASC, [ProblemId] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO /****** Object: Table [dbo].[AlgorithmUser] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[AlgorithmUser]( [AlgorithmId] [bigint] NOT NULL, [UserId] [uniqueidentifier] NOT NULL, CONSTRAINT [PK_AlgorithmUser_AlgorithmId_UserId] PRIMARY KEY CLUSTERED ( [AlgorithmId] ASC, [UserId] 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 /****** Object: Table [dbo].[Parameter] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Parameter]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [ExperimentId] [bigint] NOT NULL, [DataTypeId] [bigint] NOT NULL, [Name] [nvarchar](max) NOT NULL, [BoolValue] [bit] SPARSE NULL, [IntValue] [int] SPARSE NULL, [LongValue] [bigint] SPARSE NULL, [FloatValue] [real] SPARSE NULL, [DoubleValue] [float] SPARSE NULL, [StringValue] [nvarchar](max) SPARSE NULL, [BinaryValueId] [bigint] SPARSE NULL, CONSTRAINT [PK_Parameter_Id] 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 /****** Object: Table [dbo].[Run] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Run]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [ExperimentId] [bigint] NOT NULL, [RandomSeed] [bigint] NOT NULL, [CreatedDate] [datetime2](7) NOT NULL, [UserId] [uniqueidentifier] NOT NULL, [ClientId] [uniqueidentifier] NOT NULL, CONSTRAINT [PK_Run_Id] 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 CREATE NONCLUSTERED INDEX [IX_Run_ExperimentId] ON [dbo].[Run] ( [ExperimentId] ASC ) INCLUDE ( [Id], [CreatedDate], [UserId], [ClientId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO /****** Object: Table [dbo].[Result] Script Date: 01/24/2011 03:13:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Result]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [RunId] [bigint] NOT NULL, [DataTypeId] [bigint] NOT NULL, [Name] [nvarchar](max) NOT NULL, [BoolValue] [bit] SPARSE NULL, [IntValue] [int] SPARSE NULL, [LongValue] [bigint] SPARSE NULL, [FloatValue] [real] SPARSE NULL, [DoubleValue] [float] SPARSE NULL, [StringValue] [nvarchar](max) SPARSE NULL, [BinaryValueId] [bigint] SPARSE NULL, CONSTRAINT [PK_Result_Id] 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 /****** Object: ForeignKey [FK_AlgorithmClass_Algorithm] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_AlgorithmClass_Algorithm] FOREIGN KEY([AlgorithmClassId]) REFERENCES [dbo].[AlgorithmClass] ([Id]) GO ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_AlgorithmClass_Algorithm] GO /****** Object: ForeignKey [FK_BinaryValue_Algorithm] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_BinaryValue_Algorithm] FOREIGN KEY([BinaryValueId]) REFERENCES [dbo].[BinaryValue] ([Id]) GO ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_BinaryValue_Algorithm] GO /****** Object: ForeignKey [FK_DataType_Algorithm] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_DataType_Algorithm] FOREIGN KEY([DataTypeId]) REFERENCES [dbo].[DataType] ([Id]) GO ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_DataType_Algorithm] GO /****** Object: ForeignKey [FK_Platform_Algorithm] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_Platform_Algorithm] FOREIGN KEY([PlatformId]) REFERENCES [dbo].[Platform] ([Id]) GO ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_Platform_Algorithm] GO /****** Object: ForeignKey [FK_Algorithm_AlgorithmUser] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[AlgorithmUser] WITH CHECK ADD CONSTRAINT [FK_Algorithm_AlgorithmUser] FOREIGN KEY([AlgorithmId]) REFERENCES [dbo].[Algorithm] ([Id]) ON UPDATE CASCADE ON DELETE CASCADE GO ALTER TABLE [dbo].[AlgorithmUser] CHECK CONSTRAINT [FK_Algorithm_AlgorithmUser] GO /****** Object: ForeignKey [FK_Platform_DataType] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[DataType] WITH CHECK ADD CONSTRAINT [FK_Platform_DataType] FOREIGN KEY([PlatformId]) REFERENCES [dbo].[Platform] ([Id]) GO ALTER TABLE [dbo].[DataType] CHECK CONSTRAINT [FK_Platform_DataType] GO /****** Object: ForeignKey [FK_Algorithm_Experiment] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Experiment] WITH CHECK ADD CONSTRAINT [FK_Algorithm_Experiment] FOREIGN KEY([AlgorithmId]) REFERENCES [dbo].[Algorithm] ([Id]) GO ALTER TABLE [dbo].[Experiment] CHECK CONSTRAINT [FK_Algorithm_Experiment] GO /****** Object: ForeignKey [FK_Problem_Experiment] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Experiment] WITH CHECK ADD CONSTRAINT [FK_Problem_Experiment] FOREIGN KEY([ProblemId]) REFERENCES [dbo].[Problem] ([Id]) GO ALTER TABLE [dbo].[Experiment] CHECK CONSTRAINT [FK_Problem_Experiment] GO /****** Object: ForeignKey [FK_BinaryValue_Parameter] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Parameter] WITH CHECK ADD CONSTRAINT [FK_BinaryValue_Parameter] FOREIGN KEY([BinaryValueId]) REFERENCES [dbo].[BinaryValue] ([Id]) GO ALTER TABLE [dbo].[Parameter] CHECK CONSTRAINT [FK_BinaryValue_Parameter] GO /****** Object: ForeignKey [FK_DataType_Parameter] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Parameter] WITH CHECK ADD CONSTRAINT [FK_DataType_Parameter] FOREIGN KEY([DataTypeId]) REFERENCES [dbo].[DataType] ([Id]) GO ALTER TABLE [dbo].[Parameter] CHECK CONSTRAINT [FK_DataType_Parameter] GO /****** Object: ForeignKey [FK_Experiment_Parameter] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Parameter] WITH CHECK ADD CONSTRAINT [FK_Experiment_Parameter] FOREIGN KEY([ExperimentId]) REFERENCES [dbo].[Experiment] ([Id]) GO ALTER TABLE [dbo].[Parameter] CHECK CONSTRAINT [FK_Experiment_Parameter] GO /****** Object: ForeignKey [FK_BinaryValue_Problem] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_BinaryValue_Problem] FOREIGN KEY([BinaryValueId]) REFERENCES [dbo].[BinaryValue] ([Id]) GO ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_BinaryValue_Problem] GO /****** Object: ForeignKey [FK_DataType_Problem] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_DataType_Problem] FOREIGN KEY([DataTypeId]) REFERENCES [dbo].[DataType] ([Id]) GO ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_DataType_Problem] GO /****** Object: ForeignKey [FK_Platform_Problem] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_Platform_Problem] FOREIGN KEY([PlatformId]) REFERENCES [dbo].[Platform] ([Id]) GO ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_Platform_Problem] GO /****** Object: ForeignKey [FK_ProblemClass_Problem] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_ProblemClass_Problem] FOREIGN KEY([ProblemClassId]) REFERENCES [dbo].[ProblemClass] ([Id]) GO ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_ProblemClass_Problem] GO /****** Object: ForeignKey [FK_Problem_ProblemUser] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[ProblemUser] WITH CHECK ADD CONSTRAINT [FK_Problem_ProblemUser] FOREIGN KEY([ProblemId]) REFERENCES [dbo].[Problem] ([Id]) ON UPDATE CASCADE ON DELETE CASCADE GO ALTER TABLE [dbo].[ProblemUser] CHECK CONSTRAINT [FK_Problem_ProblemUser] GO /****** Object: ForeignKey [FK_BinaryValue_Result] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Result] WITH CHECK ADD CONSTRAINT [FK_BinaryValue_Result] FOREIGN KEY([BinaryValueId]) REFERENCES [dbo].[BinaryValue] ([Id]) GO ALTER TABLE [dbo].[Result] CHECK CONSTRAINT [FK_BinaryValue_Result] GO /****** Object: ForeignKey [FK_DataType_Result] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Result] WITH CHECK ADD CONSTRAINT [FK_DataType_Result] FOREIGN KEY([DataTypeId]) REFERENCES [dbo].[DataType] ([Id]) GO ALTER TABLE [dbo].[Result] CHECK CONSTRAINT [FK_DataType_Result] GO /****** Object: ForeignKey [FK_Run_Result] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Result] WITH CHECK ADD CONSTRAINT [FK_Run_Result] FOREIGN KEY([RunId]) REFERENCES [dbo].[Run] ([Id]) GO ALTER TABLE [dbo].[Result] CHECK CONSTRAINT [FK_Run_Result] GO /****** Object: ForeignKey [FK_Experiment_Run] Script Date: 01/24/2011 03:13:48 ******/ ALTER TABLE [dbo].[Run] WITH CHECK ADD CONSTRAINT [FK_Experiment_Run] FOREIGN KEY([ExperimentId]) REFERENCES [dbo].[Experiment] ([Id]) GO ALTER TABLE [dbo].[Run] CHECK CONSTRAINT [FK_Experiment_Run] GO