Best practice cfwheels with SQL Server: datetime, datetime2 or timestamp

230 views
Skip to first unread message

Thorsten Eilers

unread,
Jul 20, 2012, 11:11:56 AM7/20/12
to cfwh...@googlegroups.com
What's Best practice for cfwheels with SQL Server 2012
To use datetime, datetime2 or timestamp?

Andy Bellenie

unread,
Jul 20, 2012, 12:03:20 PM7/20/12
to cfwh...@googlegroups.com
What for?

On 20 July 2012 16:11, Thorsten Eilers <thorste...@googlemail.com> wrote:
What's Best practice for cfwheels with SQL Server 2012
To use datetime, datetime2 or timestamp?

--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/lyDxgIKdMZwJ.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.

Thorsten Eilers

unread,
Jul 21, 2012, 2:24:22 AM7/21/12
to cfwh...@googlegroups.com
The default cfwheels date fields:
createdat
updatedat
deletetat

Andy Bellenie

unread,
Jul 21, 2012, 7:56:16 AM7/21/12
to cfwh...@googlegroups.com
I don't know about MySQL but I always use datetime in SQL Server

--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/nw6SIWhT8nQJ.
Message has been deleted

Thorsten Eilers

unread,
Jul 23, 2012, 8:27:53 AM7/23/12
to cfwh...@googlegroups.com
According to this thread datetime2 is more accurate and has a wider date frame and some other options.
http://stackoverflow.com/questions/1334143/sql-server-datetime2-vs-datetime

I think for my new app I will switch to datetime2. Just in case I will ever need this features.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages