But now my problem is that I have Stored Procedure that have get the text by
returning a OUTPUT-variable with text.
The variable is of type nvarchar(4000)
I thought that I just could change it to ntext which is also the datatype of
the field because it has to keep more than 4000 characters.
BUT, then I realized that a OUTPUT variable can't be of type ntext??!!
How can I return largetext in a OUTPUT-variable?
Per Lundkvist.
OUTPUT
Indicates that the parameter is a return parameter. The value of this option
can be returned to EXEC[UTE]. Use OUTPUT parameters to return information to
the calling procedure. Text, ntext, and image parameters can be used as
OUTPUT parameters. An output parameter using the OUTPUT keyword can be a
cursor placeholder
--
Andrew J. Kelly, SQL Server MVP
Targitmail
"Per Lundkvist" <per.lu...@comsol.se> wrote in message
news:uWkDog1DBHA.2012@tkmsftngp05...
DECLARE @ntext_variable ntext
SELECT @ntext_variable = thetext FROM texttable WHERE id = 10
But it is then I get the error message:
"Error 409: The assignment operator operation cannot take a ntext data type
as an argument."
So the problem is that I can't get the text I get from the result into my
OUTPUT-variable so I can return it to the browser.
Per L.
"Andrew J. Kelly" <ake...@targitmail.com> wrote in message
news:e#BC093DBHA.1828@tkmsftngp05...
--
Andrew J. Kelly, SQL Server MVP
Targitmail
"Per Lundkvist" <per.lu...@comsol.se> wrote in message
news:#hkXID4DBHA.508@tkmsftngp02...
Thank you for all help!
Per L.
www.comsol.com
"Andrew J. Kelly" <ake...@targitmail.com> wrote in message
news:##iahK5DBHA.496@tkmsftngp05...