Skip to content

Inserting a record using stored procedure without duplicate

Lovely Karthik

Asked Dec 8, 2014, 9:05 AM EST1 answer
Share
LinkedInX
how can i insert a record using stored procedure without duplicate values..

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Vithal Wadje
    0
    check the stored procedure input values with table records whether it is already exist or not before inserting the records into the table.
    like as follows

    IF NOT EXISTS(SELECT * FROM emp WHERE Name=@Name)
    begin

    ---inert logic

    End
    0