Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Using CAST and CONVERT

$
0
0

Hi,

I have a nvarchar field that I want to sum. To do this I believe I need to convert it an INT.

I am trying to use the below code, but I am getting a conversion error.

SQL
CONVERT(INT,[NewValue])

Regards

David


Viewing all articles
Browse latest Browse all 4871

Trending Articles