Unique Index ~ SQL server

  • Dear Experts

    Please help me to convert below oracle unique constraint index to Sql Server

     

    CREATE UNIQUE INDEX UK_IDX_TLOG ON TLOG_TB (CASE MSG_TYPE WHEN '200' THEN TXN_AUTH_ID END );

     

    Please help

     

     

  • CREATE UNIQUE INDEX UK_IDX_TLOG ON TLOG_TB ( TXN_AUTH_ID ) WHERE MSG_TYPE = '200';

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • Thanks Pletcher.

     

     

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

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