I want to create a column that would be something like this:
create table dbo.t1
(
[Notification_Month] datepart(mm, [date]) null,
)
I want to store the month as a date property without storing other parts of the date. It's a weird question I know, but this table is being used by a WPF application so it would be easier to restrict date entries if SQL Server allowed this but if not I could probably find a long and convoluted solution using c#.
I have some other ideas for workarounds if this isn't possible but thought before I say it's not, always best to check with stack.