Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Data Type for a REPLACE statement

$
0
0

Hi,

May I know what is the data type of this query after REPLACE is applied? Date or string?

declare @date as datetime2(0)
set @date = '2013-10-13 23:54:02.32365'

print replace(convert(date, @date, 112), '-', '')


cherriesh


Viewing all articles
Browse latest Browse all 12963

Trending Articles