I have the following table:CREATE TABLE [LogonSetMapping] ( [UniqueKey] [int] IDENTITY (1, 1) NOT NULL , [MachineName] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [LogonSetNumber] [varchar] (6) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [SiteKey] [int] NULL , [AmcatRemoteAgent] [bit] NULL CONSTRAINT [DF_LogonSetMapping_AmcatRemoteAgent] DEFAULT (0), [LastLoggedOnAgentID] [int] NULL , [RemoteAgentKey] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [ClientTypeID] [int] NULL CONSTRAINT [DF_LogonSetMapping_ClientTypeID] DEFAULT (1), CONSTRAINT [PK_LogonSetMapping] PRIMARY KEY CLUSTERED ( [UniqueKey] ) ON [PRIMARY] ) ON [PRIMARY]GO
I need to set up some form of Rule that will allow only the following:Unique 'Machine Name' per 'SiteKey' andUnique 'Machine Name' per 'LogonSetNumber'whenever a new set of data is inserted. Can anyone show me how this would be possible please?