How to get over "Cannot fetch into text, ntext, and image variables." on SQL Server? -
I get this error message: Message 16 9 27, Level 16, State 1, Process GetWfGenProcessParameters, Line 21 can not be used to get text, antext, and image variable.
I really need to create this cursor with text data. Is there any way to eliminate this error?
If you use SQL Server 2005 , you NVARCHAR (MAX) :
You can create text_test (test NTEXT not empty) include the text_test values ('test') DECLARE @t NVARCHAR (max); Select the test for the txt_cur cursor text_test Open txt_cur FETCH ahead of txt_cur @t off txt_cur DEALLOCATE txt_cur go drop table text_test
Comments
Post a Comment