you can create a trigger on the table and write the below query
Empid EmpName Subscription_in_months Date Active
1 Ram 6 2010-10-10 00:00:00.000 1
2 Subash 6 2012-05-11 00:00:00.000 1
3 Tanvik 6 2012-12-13 00:00:00.000 1
update Table1 set Active=0 where Empid in (SELECT Empid from Table1 where Active=1 and DATEDIFF(month,date1,getdate()) > 6)
Empid EmpName Subscription_in_months Date Active
1 Ram 6 2010-10-10 00:00:00.000 0
2 Subash 6 2012-05-11 00:00:00.000 0
3 Tanvik 6 2012-12-13 00:00:00.000 1
Thanks
Pavan Kumar
Mark Answer if this fits the need
Self-Innovator, if this helps please login to Mark As Answer. | Alert Moderator