Create this Stored procedure ... You will get your Solution
create procedure sp_by_aarif
@item_id int=0,
@item_name varchar(50)= ''
AS
BEGIN
if exists (select * from yourTableName where item_id=@item_id)
begin
Insert into yourTableName values (@item_id,@item_name)
end
end
Note: Here give your Table name rather than "yourTableName"
Thanks
AARIF SHAIKH