SQL Server Functions
Author information unavailable
Abstract
Author information unavailable
Abstract
In this chapter, I’ll demonstrate how to use SQL Server built-in functions in your Transact-SQL code. SQL Server built-in functions, not to be confused with the user-defined functions covered in Chapter 11, allow you to performaggregations,mathematical operations, stringmanipulation, row ranking, andmuchmore. SQL Server 2008 has added new functions as well, including GROUPING, SYSDATETIME, SYSDATETIMEOFFSET, SYSUTCDATETIME, SWITCHOFFSET, and TODATETIMEOFFSET—all of which I’ll demonstrate. I’ll also cover the new SQL Server 2008 improvement that allows you to return binary data in a string hexadecimal literal format.
A significance statement is not available in the OpenAlex record.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
In this chapter, I’ll demonstrate how to use SQL Server built-in functions in your Transact-SQL code. SQL Server built-in functions, not to be confused with the user-defined functions covered in Chapter 11, allow you to performaggregations,mathematical operations, stringmanipulation, row ranking, andmuchmore. SQL Server 2008 has added new functions as well, including GROUPING, SYSDATETIME, SYSDATETIMEOFFSET, SYSUTCDATETIME, SWITCHOFFSET, and TODATETIMEOFFSET—all of which I’ll demonstrate. I’ll also cover the new SQL Server 2008 improvement that allows you to return binary data in a string hexadecimal literal format.
Key concepts: User-defined function, Data Transformation Services, Computer science, SQL/PSM, Stored procedure, Sql server, Business Intelligence Markup Language, Language Integrated Query