Should I embed the current Datetime in the code behind or install on the database server

I made a subscription form. when inserting data, I will indicate the date and time of the subscription. Whether we should put the date of the subscription date in the code behind or in the mssql server as the default value.

+3
source share
2 answers

I think this is a personal choice, although I always do this in SQL using CURRENT_TIMESTAMP

My reasoning is why you need to add an additional parameter to your query that you really don't need, its just additional data that you have to create.

, codebehind , , , , , , .

, , , , . - , , , , , - , .

SP , 5-6 , .

, , , ? , , , .

+3

( ), UTC. GETUTCDATE() UTC.

0

All Articles