I have a stored procedure that accepts a list of (comma delimited) IDs as a parameter. The data type is nvarchar. I then use this parameter to fire a query that has a IN statement, something like "SupplierID in (' + @SupplierID + ')" where @SupplierID is teh param in question.
Initially I had set the param to nvarchar(2000) but then the length of the data started getting bigger and I had to increase it to nvarchar(4000) which is the max. limit for nvarchar.
There are chances that the data might get bigger. Is there any other way to define this param that can accept a value higher than 4000 chars. I tried ntext but on compilation I get an error: "Invalid operator for data type. Operator equal add type equals ntext"
It is probably not accepting a string concatenation operation on type ntext.
Any help on this would be appreciated. Thanks !
Initially I had set the param to nvarchar(2000) but then the length of the data started getting bigger and I had to increase it to nvarchar(4000) which is the max. limit for nvarchar.
There are chances that the data might get bigger. Is there any other way to define this param that can accept a value higher than 4000 chars. I tried ntext but on compilation I get an error: "Invalid operator for data type. Operator equal add type equals ntext"
It is probably not accepting a string concatenation operation on type ntext.
Any help on this would be appreciated. Thanks !