On Premise and Cloud Database Knowledge Base

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



Leave a Reply

1 comment

  1. Pingback: DotNetShoutout

Leave a Reply

Your email address will not be published.