How to alter the existing unique nonclustered index

  • I am using SQL server 2005.

    I have one existing index created on a table.

    This UNIQUE NONCLUSTERED INDEX is defined on one column EID at present but i want to add one more column PID to this existing index.

    How i can alter the below index? Any help is appreciated.

    CREATE UNIQUE NONCLUSTERED INDEX [TBL1_IDX1] ON [dbo].[TBL1]

    (

    [EId] ASC

    )WITH (SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF) ON [PRIMARY]

  • Please don't cross post. It just wastes people's time and fragments replies

    No replies to this thread please. Direct replies to http://qa.sqlservercentral.com/Forums/Topic1096116-145-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply