sp_xml_preparedocument 文本数据类型
MS SQL 2000...
我在 sql server 中有一个表,其中有一列定义为文本数据类型。我需要将文本数据类型的值传递到 sp_xml_preparedocument 函数中。所有这一切都发生在存储过程中。问题是我无法创建定义为文本数据类型的局部变量来保存表中我需要的特定值的值。最初,该过程被设计为将文本字段的值传递到 varchar(8000) 局部变量中以存储内容,然后将其传递给函数。但是,文本字段的值现在大于 8000。我见过一些将文本字段分解为两个 varchar(8000) 局部变量的示例,但我宁愿不必创建游标。关于这样做还有其他建议吗?
提前致谢。
MS SQL 2000...
I've got a table in sql server with a column defined as a text datatype. I need to pass the value of the text datatype into sp_xml_preparedocument function. All this is happening in a stored procedure. The issue is that I can't create a local variable defined as a text datatype to hold the value of the particular value I need in the table. Initially the proc was designed to pass the value of the text field into a varchar(8000) local variable to store the contents then pass it to the function. However, the value of the text field is now larger than 8000. I've seen some examples of breaking up the text field into two varchar(8000) local variables, but I would rather not have to create cursors. Any other suggestions on doing this?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看 SQL Server:当 8000 个字符不够时 一些示例
如果您可以尽快升级到具有 varchar(max) 的 SQL 2005/2008 :-)
Take a look at SQL Server: When 8000 Characters Is Not Enough for some examples
If you can as soon as possible upgrade to SQL 2005/2008 where you have varchar(max) :-)