I am using SQL Server Management Studio to create a new table. I have a "HistoryYear" column that has a data type of datetime2.
How do I get the year only as the output? Do I change the data type? Or what do I put into the Default Value or Binding section?
Thank you!