( SELECT ( CASE WHEN FotoId IS NULL THEN 'Some URL' ELSE 'Some URL' + FotoId + '-100-100-9.jpg' END ) AS FotoURL FROM Fotos WHERE ProfielId = 123
Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value 'Some URL' to data type int.
ELSE 'Some URL' + CONVERT(NVARCHAR(10), FotoId) + '-100-100-9.jpg'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)