Jeremy Wadsworth
My Contribution to the ASP.NET Community


Welcome   
Welcome to my personal website. Here you will find blog posts related to web development as well as personal related interests. If you're here for the source code to my Personal Web Site Kit, please register and you'll receive an email when your account has been approved.


Latest Blog Entries

 Tuesday, September 04, 2007


Error validating the default for column ...    

I made this mistake when I was creating a new table in one of my databases today.

When setting a default for a DateTime column in a SQL Server database, you'll get the error, Error validating the default for column 'column name', if you try something like Now() as the default. That's because that is not a valid function. You need to use GetDate().



jeremy at 3:51 PM | (4) Comments | Add a comment | Permalink





Commments
Bob said...

Spoon.

Thursday, June 05, 2008 4:33 AM

Tiffany jewellery said...

if you try something like Now() as the default. That's because that is not a valid function. You need to use GetDate().

Friday, July 16, 2010 9:22 PM

unlocked phone said...

if you try something like Now() as the default. That's because that is not a valid function. You need to use GetDate().

Thursday, August 26, 2010 3:13 AM

cheap phone said...

oh it's good

Thursday, August 26, 2010 3:14 AM

  Leave a comment

Enter Your Name:
 
Enter your website
Security code from image below:  
Need Custom Controls Work or Training?
   


Join WebHost4Life.com






If you would like to help support this project, please click the button below to make a small donation.