Home > SQL Challenge > CREATE UNIQUE NONCLUSTERED INDEX

CREATE UNIQUE NONCLUSTERED INDEX

IF EXISTS (SELECT name FROM sys.indexes
            WHERE name = N’ix_Ast_lAstId’)
    DROP INDEX ix_Ast_lAstId ON EAMPC.dbo.amAsset;
go   

CREATE UNIQUE NONCLUSTERED INDEX [ix_Ast_lAstId] ON EAMPC.[dbo].[amAsset]
(
    [lAstId] 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

Categories: SQL Challenge
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: