Hi, I need help!
I need to use a local variable of length greater than 4k characters. The only way to accomplish this is to use the nText field (I need nText because i'm buildig a dynamic string for a query that will be then executed by sp_executesql).
Since i cant declare an ntext variable I had to create a temp table that stores this value. Now, I have a loop that needs to append to the value stored in the nText field.
Is it possible?
-----
What would be a better solution?
I need to use a local variable of length greater than 4k characters. The only way to accomplish this is to use the nText field (I need nText because i'm buildig a dynamic string for a query that will be then executed by sp_executesql).
Since i cant declare an ntext variable I had to create a temp table that stores this value. Now, I have a loop that needs to append to the value stored in the nText field.
Is it possible?
-----
What would be a better solution?