Trying to convert a default getdate() value in a MSSQL table into a
smalldatetime field.

The goal is for the default value to be in the format "08/22/2013 00:00:000
AM" 

The table is in a web site hosted by Godaddy.

They have an interface allowing us to edit the field's data type and allows
us to enter a default value.

We are using a data type of smalldatetime and tried the
"(CONVERT([smalldatetime],getdate(),(0)))", but it is still returning data
that has minutes, seconds, etc.



James E Harvey 
M.I.S.
Hanover Shoe Farms, Inc.
www.hanoverpa.com
office: 717-637-8931
cell: 717-887-2565
fax: 717-637-6766


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to