Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7939159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:01:01+00:00 2026-06-03T23:01:01+00:00

I made a form subscribe form. when inserting data i will put the subscribe

  • 0

I made a form subscribe form. when inserting data i will put the subscribe date and time there.
Should we put the subscribe date time in code behind or in mssql server as a default value.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:01:02+00:00Added an answer on June 3, 2026 at 11:01 pm

    I think this is personal choice though I always do this kind of thing in SQL using CURRENT_TIMESTAMP

    My reasoning is why bother adding an extra parameter to your query that is not really needed, its just extra data you have to generate.

    As has been mentioned adding it in codebehind might aid in code readability but I disagree, when you call a procedure you dont always need to know what it is storing and how it does it, you just need to know what it does.

    As an example I have a lot of procedures that edit things in my database and as a side task they also update audit tables so I have a log of what is being done. Which ever programmer calls these procedures doesnt need to know this as the procedures primary function is to insert or edit data in a main table, the audit trail that is generated is just data about data and not relevant to what this programmer is doing.

    If I were to add all the audit parameters to each of these SPs in code behind then there would be 5-6 extra parameters which just clutter up my codebehind and complicate things even more.

    In your scenario does the person inserting the data into your database need to know that it logs the time the data is inserted? Im guessing probably not so there is no real need to generate the date in codebehind.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my iOS application I have made a form that should submit data into
I made a form process and broke the code up into different files to
I made a form, but I don't know how to collect data from it
I made a form that gets send to my email. now there is a
I have made a form that asks the user to put in first name
Okay. So I made a form. If I put in mysql_real_escape_string on my variable
I have made a form with the php code right under the html form
So basically there is a made html form with a button, it doesnt have
I made a form class in c# that has a devexpress grid, a label
I have made a form that accepts query and executes it through php. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.