IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[TODA]') AND 
name = N'IX_TODA_SUBEID_ODANO')
CREATE UNIQUE INDEX IX_TODA_SUBEID_ODANO ON TODA (SUBEID,ODANO)

/*ALTER TABLE [dbo].[TODA] ADD UNIQUE(SUBEID,ODANO)*/
