470,619 Members | 2,089 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,619 developers. It's quick & easy.

How to assign string value to TEXT output parameter of a stored procedure?


I am currently trying to assign some string to a TEXT output parameter
of a stored procedure.

The basic structure of the stored procedure looks like this:

-- 8< --
@blob_data image,
@clob_data text OUTPUT
INSERT INTO Table (blob_data, clob_data) VALUES \
(@blob_data, @clob_data);
-- 8< --

My previous attempts include using the convert function to convert a
string into a TEXT data type:
SET @clob_data = CONVERT(text, 'This is a test');

Unfortunately, this leads to the following error: "Error 409: The
assignment operator operation cannot take a text data type as an argument."

Is there any alternative available to make an assignment to a TEXT
output parameter?

Jul 23 '05 #1
1 5654
Is there a reason you can't just do a select on it?

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by laurenq uantrell | last post: by
18 posts views Thread by Steve Litvack | last post: by
8 posts views Thread by Christopher Weaver | last post: by
2 posts views Thread by Igor | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.