How do I add a record only if it doesn't already exist in SQL Server?
Posted
by menacheb
on Stack Overflow
See other posts from Stack Overflow
or by menacheb
Published on 2010-04-28T14:11:09Z
Indexed on
2010/04/28
14:23 UTC
Read the original article
Hit count: 181
Hi,
I have a project in C# with a Sql-server Database.
In that database I have a table named 'Process' and columns named 'process_name', 'Full_Name' and 'Version' (all of the type:nvarchar(50)).
I want to write a query wich will add the new process, only if it doesn't exist in the table yet.
How can I do that?
Many thanks,
© Stack Overflow or respective owner