0

I want to create a database which has one date column that needs to be automatically filled with the current date. I tried the following design in Sql Management Studio: enter image description here

The problem with this desing is that every time I insert a new record to the table, all DateEffective rows change to the current date, and I need only the last row to change. Is there any solution to this problem?

Thanks!

Ravul
  • 285
  • 6
  • 19

1 Answers1

0

try creating a trigger for this:

Trigger

Joe G Joseph
  • 23,518
  • 5
  • 56
  • 58