Source code | SQL 2005 Adventure Works OLTP |
CREATE UNIQUE INDEX [AK_ProductInventory_rowguid] ON [Production].[ProductInventory]([rowguid]) ON [PRIMARY]; CREATE INDEX [IX_ProductInventory_ProductID] ON [Production].[ProductInventory]([ProductID]) ON [PRIMARY]; EXEC [sys].[sp_addextendedproperty] N'MS_Description', N'Unique nonclustered index.Used to support replication samples.', N'SCHEMA', [Production], N'TABLE', [ProductInventory], N'INDEX', [AK_ProductInventory_rowguid]; EXEC [sys].[sp_addextendedproperty] N'MS_Description', N'Nonclustered index.', N'SCHEMA', [Production], N'TABLE', [ProductInventory], N'INDEX', [IX_ProductInventory_ProductID]; EXEC [sys].[sp_addextendedproperty] N'MS_Description', N'Clustered index created by a primary key constraint.', N'SCHEMA', [Production], N'TABLE', [ProductInventory], N'INDEX', [PK_ProductInventory_ProductID_LocationID]; |