TIMEFROMPARTS function – SQL Server Denali

We are going to discuss another new function that’s going to get released with SQL Server Denali. This function is related to date time category. This is similar to the early function which we saw. Time returns a fully initialized time value. If the arguments are invalid then an error is raised, if you have NULL value in argument then NULL is returned.

Syntax is below

TIMEFROMPARTS ( hour, minute, seconds, fractions, precision )

Lets try with an example

SELECT TIMEFROMPARTS(21,53,33,55,3)

timefromparts


Posted

in

by

Comments

One response to “TIMEFROMPARTS function – SQL Server Denali”

  1. SQL-Articles » TIMEFROMPARTS function – SQL Server Denali…

    Thank you for submitting this cool story – Trackback from DotNetShoutout…

Leave a Reply to DotNetShoutout Cancel reply

Your email address will not be published. Required fields are marked *