Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 using ntext datatype as parameter for sp_executesql

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-06-17 : 08:22:54
Steve McCormick writes "I have a dynamic SQL statement that can grow quite large. I found that it can exceed Nvarchar(4000) I cant seem to use Ntext. How would I get the value into a Ntext datatype to use as a parameter for sp_executesql?"

Page47
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2002-06-17 : 09:07:34
You can't, however, you should be able string multiple nvarchars together like @sql1 + @sql2 + @sql3 . . .

You cannont use a BLOB as a datatype for a stored procedure.

<O>
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-06-17 : 09:39:27
quote:
You cannont use a BLOB as a datatype for a stored procedure.

Well, technically you can, but it's so restrictive as to be totally impractical. You can only pass a text/ntext, you can't manipulate it, and therefore you can only pass literal values, not variables or column values.

Go to Top of Page

Page47
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2002-06-17 : 10:11:59
oh, right . . . sorry

<O>
Go to Top of Page
   

- Advertisement -