ashishsmith
Programmer
I have designed a Data Base on SQL Server Database. I want to change an attribute in that Data Base according to the date.
There are 2 things, Difference of Date and Flag.
I want to change the value of Flag from 0 to 1 when Difference of Date is between 1 <= x <= 30.
If the Difference of Date goes beyond the range means it may be 0 or 31 than the Flag should turn automatically to 0.
Is it possible to do that in SQL Server Database.
I don't know if I am wrong, but I think it can be done through "Triggers" in DB, that would check Date of Diff and Flag everyday. Whenever the Date of Diff goes beyondthe range, It updates the Flag.
If anybody has done this before please reply to me. It is kind of urgent, because I am going on vacaton and I need to automate the process.
Thank you,
Ashish Smith
There are 2 things, Difference of Date and Flag.
I want to change the value of Flag from 0 to 1 when Difference of Date is between 1 <= x <= 30.
If the Difference of Date goes beyond the range means it may be 0 or 31 than the Flag should turn automatically to 0.
Is it possible to do that in SQL Server Database.
I don't know if I am wrong, but I think it can be done through "Triggers" in DB, that would check Date of Diff and Flag everyday. Whenever the Date of Diff goes beyondthe range, It updates the Flag.
If anybody has done this before please reply to me. It is kind of urgent, because I am going on vacaton and I need to automate the process.
Thank you,
Ashish Smith