How to get Time from a RowVersion value with T-SQL Code
Check out this article to help you figure out real dates and times when using a SQL Server RowVersion value.
Learn SQL Server functions with practical tips, examples, and tutorials to improve querying and data analysis.
Check out this article to help you figure out real dates and times when using a SQL Server RowVersion value.
This tip shows several examples of COUNT and COUNT DISTINCT to show how SQL Server handles them differently.
Learn about the impact of using COUNT in your SQL Server queries along with several examples and statistics of how using COUNT impacts performance.
In this article, we look at how to use the SQL Server system functions, LOG and LOG10, to get logarithmic data values to be used for data analysis.
SQL Server objects have many different property attributes learn how to use the OBJECTPROPERTY() system function to return various data about objects.
Learn how to easily calculate dates such as last day of month, nth Monday of month, and more both with and without a calendar tables.
In this article, we look at various ways to convert problematic data in SQL Server by using TRY_CAST, TRY_CONVERT, and TRY_PARSE.
Learn about SQL Server metadata functions like SERVERPROPERTY, DATABASEPROPERTYEX, DB_NAME, DB_ID, FILE_NAME, FILE_ID, FILE_IDEX, SCHEMA_NAME and more
Learn how to concatenate data in SQL Server to make one long string instead of having separate columns.
In this article, we look at the SQL Server WAITFOR command to allow delays in processing either for a specified time or a set amount of time.
In this article, we look at how to get a count of rows from SQL Server using the COUNT and COUNT_BIG aggregate functions along with several examples.
In this article we look at how to generate random dates in SQL Server to build a sample dataset along with code and examples.
Learn about SQL Server configuration functions to return information about SQL Server, sessions, configuration settings and more.
Learn various ways to calculate the average of a set of SQL Server rows using the AVG function along with several use cases and examples.
In this article we cover different ways to convert a SQL Server numeric value into a string value.

In this article learn how to use PIVOT and UNPIVOT in SQL Server to transform your data output along with examples.
Learn about the SQL MAX() function in SQL Server to find the maximum values in a result set along with several examples of using SQL MAX().
In this article learn about the SQL Server DATEADD function to add and subtract various date parts from the date and time from a date.
In this article we look at how to determine the difference between two SQL Server dates using the datediff and datediff_big functions.
In this article we look at the datetimeoffset data type in SQL Server and how this can be used to determine dates for different time zones.
In this article we look at the impact of using the SQL Server FORMAT function along with various alternatives and comparisons.
In this article we take a closer look at the SQL Server FORMAT function and compare it to other approaches to do a performance comparison.
Learn how to use the CAST function in SQL Server to convert from one data type to another data type along with examples and alternatives.
Learn about the SQL Server CONVERT function to convert to different data types as well as alternative options.