Inserting a record using stored procedure without duplicate
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.
Know the answer? Post it. Somebody with the same question will find it here.
Vithal WadjeRank #19 · 47.2K pointsPosted Dec 8, 2014, 5:07 PM EST
like as follows
IF NOT EXISTS(SELECT * FROM emp WHERE Name=@Name)
begin
---inert logic
End