I have scenario
I want to save the data into a Name field of give table
First time it save the name
if second I provide same name I want to check if new name is already exist then triger should save new name as name 1 and for next save if name is name 1 it should save as name 2 egc....
my table is
CREATE TABLE [dbo].[tbl_EventTypes](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Severity] [int] NULL,
[EventTypeTemplateId] [int] NULL,
[Name] [nvarchar](max) NULL,
CONSTRAINT [PK_tbl_EventType_pId] PRIMARY KEY CLUSTERED
or there is any other way, I need your suggession
thanks
I want to save the data into a Name field of give table
First time it save the name
if second I provide same name I want to check if new name is already exist then triger should save new name as name 1 and for next save if name is name 1 it should save as name 2 egc....
my table is
CREATE TABLE [dbo].[tbl_EventTypes](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Severity] [int] NULL,
[EventTypeTemplateId] [int] NULL,
[Name] [nvarchar](max) NULL,
CONSTRAINT [PK_tbl_EventType_pId] PRIMARY KEY CLUSTERED
or there is any other way, I need your suggession
thanks