|
|
|
|
Browse by Tags
All Tags » SQL Server » T-SQL Tuesday » T-SQL Tuesday 001 (RSS)
-
One of the most commonly used data types in SQL Server is [datetime] which unfortunately has some vagaries around how values get casted. A typical method for defining a [datetime] literal is to write it as a character string and then cast it appropriately. The cast syntax looks something like this: DECLARE @dt ...
|
|
|
|
|