Create an Index in a Table:
Syntax: CREATE INDEX [IndexName]
ON [dbOwner].[TabelName] ([ColumnName])
WITH ( ALLOW_PAGE_LOCKS = OFF)
ON [PRIMARY]
Example: CREATE INDEX [UQ_DateCreated]
ON [dbo].[Contact] ([DateCreated])
WITH ( ALLOW_PAGE_LOCKS = OFF)
ON [PRIMARY]
Drop an Index in a Table:
Syntax: DROP INDEX [IndexName] on dbOwner.TableName
Example: DROP INDEX [IX_Content] on dbo.Content
Subscribe to:
Post Comments (Atom)
0 komentar:
Post a Comment