I know you can use
To get the day of the week. My question now is can you take that a step further and say something like
I can't seem to get it to work in SQL Server, and from my googling I haven't found any supporting documentation that says it is possible either.
Code:
SELECT datename(dw,getdate())
Code:
If datename(dw,getdate()) = 'Monday' Then
exec Monday_Procedure
Else
If datename(dw,getdate()) = 'Tuesday' Then
exec Tuesday_Procedure
End If
End If