simonchristieis
Programmer
I want to update text in a temp table and concatenate a string:
I get this error:
I cant use varchar as the fields may get quite big, and can't use ntext as a local variable type
Can anyone help
Thanks in advance
Code:
declare @tData table
(
iDataID int identity(1,1),
cText nText,
cTotalText nText
)
Insert into @tData(cText)Values('bob')
Update @tData set cTotalText = cText + 'harry'
I get this error:
Code:
The data types ntext and varchar are incompatible in the add operator.
I cant use varchar as the fields may get quite big, and can't use ntext as a local variable type
Can anyone help
Thanks in advance