SYSDATETIMEOFFSET Function in SQL Server

SYSDATETIMEOFFSET Function in SQL Server

In this SQL Server tutorial, you will learn how to use the SYSDATETIMEOFFSET function in SQL Server. You will learn how to use the SYSDATETIMEOFFSET() function with different time zones and also use it with table columns, especially using it as the default value for recording the exact timing of the data insertion. SYSDATETIMEOFFSET Function … Read more

How to use GETDATE Function in SQL Server

GETDATE Function in SQL Server

In this SQL Server tutorial, you will learn about the GETDATE function in SQL Server that helps find the current date and time of the system. You will learn about the syntax of GETDATE() with an example and then how to use the GETDATE() function with a table column, where you will create a table … Read more

How to use COUNT Function in SQL Server

COUNT Function in SQL Server with ALL Option on EmployeeID column

In this SQL Server tutorial, you will learn how to use the COUNT function in SQL Server to count the number of rows in a table. The COUNT() is a basic function for data analysis or another purpose, depending on the requirement. Here, you will understand the COUNT() function variants with syntax. Also, you will … Read more

How to Use CURRENT_TIMESTAMP Function in SQL Server

CURRENT_TIMESTAMP Function in SQL Server

If the database developer wants to get the exact time of a system on which the SQL server is currently running, they can use the CURRENT_TIMESTAMP Function provided by SQL Server. The CURRENT_TIMESTAMP() function returns the computer’s current time stamp in ‘YYYY-MM-DD hh:mm: ss.mmm’ format. This function is useful when we want to record additions or deletions … Read more

LOWER Function in SQL Server

LOWER Function in SQL Server Uppercase Literal String

In this SQL Server tutorial, you learn about the LOWER function in SQL Server. Where you will be introduced to the syntax of the LOWER() function. Then you will learn how to use the LOWER() function with uppercase, mixed-case string, and string containing the special characters. In the end, you will learn how to use … Read more

UPPER Function in SQL Server

UPPER Function in SQL Server Lowercase Literal String

In this SQL tutorial, you will learn about the UPPER Function in SQL Server, where you will learn how to transform the string to uppercase. Additionally, you will learn how to convert literal strings, mixed case strings, and other characters to uppercase using the UPPER() function. Finally, you will use the UPPER() function with table … Read more

REPLACE Function in SQL Server

REPLACE Function in SQL Server with Literal String

In this SQL Server tutorial, you will learn how to use the REPLACE function in SQL Server. Where you will understand the workings of the REPLACE() function, and how to use it with a literal string, collation, and table columns. REPLACE Function in SQL Server The REPLACE() function in SQL Server replaces the substring of … Read more

SQL Server STR Function

SQL Server STR Function Float to String Conversion

In this SQL Server tutorial, I will show you how to use the SQL Server STR function, where you will understand how to convert the number to a string. You will learn about how the STR() function can be useful in various situations. Then syntax of the STR() function, as well as how to check … Read more

SQL Server LTRIM Function

SQL Server LTRIM Function Remove Leading Spaces

In this SQL Server tutorial, you will learn about the SQL Server LTRIM function to remove the leading spaces from the character expression. Where you will understand the use of the LTRIM() function with literal string, and variable to remove the character from the string. Also, you will learn how to remove the specified character … Read more

SQL Server RTRIM Function

SQL Server RTRIM Function Remove Trailing Spaces From Literal String

In this SQL Server tutorial, you will learn about the SQL Server RTRIM function to truncate the spaces from the end of any string. Where you will understand the syntax of the RTRIM() function with how to use it with a literal string and variable. Also how to remove trailing characters based on the specified … Read more