SQL Server Functions
SQL Server Functions -- PARSE SELECT PARSE ( 'Monday, 13 December 2010' AS date USING 'en-GB' ) AS OrderDate , PARSE ( '£345.98' AS money USING 'en-GB' ) AS OrderAmount -- TRY_PARSE SELECT TRY_PARSE ( 'Monday, 32 December 2010' AS date USING 'en-US' ) AS OrderDate , TRY_PARSE ( '£345.98' AS money USING 'en-US' ) AS OrderAmount -- TRY_CONVERT SELECT TRY_CONVERT ( float , '1.2' ), TRY_CONVERT ( int , 'One' ) -- DATEFROMPARTS SELECT DATEFROMPARTS ( 2010 , 12 , 31 ) --DATETIMEFROMPARTS SELECT DATETIMEFROMPARTS ( 2010 , 12 , 31 , 23 , 59 , 59 , 0 ) --SMALLDATETIMEFROMPARTS SELECT SMALLDATETIMEFROMPARTS ( 2010 , 12 , 31 , 23 , 59 ) --DATETIME2FROMPARTS SELECT DATETIME2FROMPARTS ( 2010 , 12 , 31 , 23 , 59 , 59 , 1 , 7 ) --TIMEFROMPARTS SELE...