﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Database Design / Design Ideas and Questions  / Doubth in using Default Constraint... / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 02:36:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Doubth in using Default Constraint...</title><link>http://www.sqlservercentral.com/Forums/Topic1426230-373-1.aspx</link><description>Best way to determine this is to setup a test environment and do it both ways.  Using a default will alleviate the need for the developers to code for inserting the current dateJust remember, a default is only used if the column isn't included in the INSERT.  If it is included and an invalid or simply incorrect date (including NULL if permitted) will prevent the DEFAULT from being inserted.</description><pubDate>Mon, 04 Mar 2013 07:20:15 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>Doubth in using Default Constraint...</title><link>http://www.sqlservercentral.com/Forums/Topic1426230-373-1.aspx</link><description>Hi,I am creating a new Database. In this i will have a column for to store current Date.I can specify it as a default Constraint with GetDate() or ask the developers to insert it themselves.My doubt is which will give the best performance since the database will hold millions of records.Thanks in advance,Karthick</description><pubDate>Mon, 04 Mar 2013 07:14:26 GMT</pubDate><dc:creator>ard5karthick</dc:creator></item></channel></rss>