SQL Flow Field Guide

time (data type)

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

data type time

What changes

Input
none
Output or change
none

Syntax at a glance

time [ ( fractional second scale ) ]

Work example

Store a time of day that is not tied to a particular date.

Pair time with a date or time-zone rule when an event must identify one real instant.

Check your work time stores no calendar date and no time-zone offset.

Practice SQL

Open in SQL Flow
SELECT CAST('12:30:15.1234' AS time(4)) AS opening_time;

Open Microsoft Learn for full syntax, permissions, and details for your version.