IF NOT EXISTS (SELECT Name FROM SysIndexes  WITH (NOLOCK) WHERE Name = 'IX_ArrangementLinesArrLineDate')
CREATE NONCLUSTERED INDEX [IX_ArrangementLinesArrLineDate] ON [dbo].[ArrangementLines]
(
	[ArrangementLineNumber] ASC,
	[Date] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO

IF NOT EXISTS (SELECT Name FROM SysIndexes  WITH (NOLOCK) WHERE Name = 'IX_ArrangementRoomXtab_LineNumberPacketItemNumber')
CREATE NONCLUSTERED INDEX [IX_ArrangementRoomXtab_LineNumberPacketItemNumber] ON [dbo].[ArrangementRoomXtab]
(
	[Linenumber] ASC,
	[PacketItemNumber] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO