ConditionalAttribute in C#

The Conditional attribute which is an alias for ConditionalAttribute present in System.Diagnostics, makes the execution of a method dependent on a preprocessing identifier. It can be applied to a method or an attribute class. It tells the compiler to include the method or attribute, based on whether the identifier is defined or not. We can use the following methods to define the identifier :

Continue reading


Change Tracking (CT) and Change Data Capture (CDC) in SQL Server

SQL Server 2008 introduced a powerful and an efficient way to track the DML changes, know as Change Tracking(CT) and Change Data Capture (CDC). Both of them seem to be synonyms but they do have differences, making them useful in different scenarios. Lets try to understand what CT and CDC are.

Continue reading