Merge Statement Sql2008
Merge Statement Sql2008
Introduction
One of the fantastic new features of SQL Server 2008 is Merge Statement. Using a single statement, we can Add/Update records in our database table, without explicitly checking for the existence of records to perform operations like Insert or Update.
Example
-U p d a t ee x i s t i n g ,a d dm i s s i n g M E R G EI N T Od b o . t b l _ C u s t o m e r sA SC
www.codeproject.com/Articles/37172/Merge-Statement-in-SQL-Server-2008?display=Print 1/3
10/5/13
Conclusion
So now with this new feature, we can implement the feature of add/insert/delete using a single statement without checking through the records. Hope you enjoyed this article. Happy programming!!!
History
11 th June, 2009: Initial post
License
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
www.codeproject.com/Articles/37172/Merge-Statement-in-SQL-Server-2008?display=Print
2/3