|
|
Question : Expression result length exceeds the maximum. 8000 max, 16000 found.
|
|
When I execute a stored procedure using default params which are NULL
execute prSgSingPrintCont default,default,default
I get the following error message
Server: Msg 212, Level 16, State 1, Procedure prSgSingPrintCont, Line 1152 Expression result length exceeds the maximum. 8000 max, 16000 found.
The error message appears to be happening when executing the following code:
Insert into #Res (iOrderNumber, iOrderLineNumber, chRevItem, TotalArea, TotalExTax, chFlag) Values (@OrderNo, @OrderLineNumber, @RevItemCd, @TotalArea, @TotalExTax, 'U')
all variables at this point are NULL. The SP is quite big let me know if i should paste it in. When I exeute this outside the SP it works. Point to bear the SP and schema were recently updated to use nVarchar.
hanks
|
Answer : Expression result length exceeds the maximum. 8000 max, 16000 found.
|
|
yes, limit of varchar is 8000 and nvarchar has double byte characters and limit is 4000
|
|
|
|
|