如何在SQL Server 2000中传递大于varchar(8000)的字符串参数? [英] How do I pass a string parameter greater than varchar(8000) in SQL Server 2000?

查看:88
本文介绍了如何在SQL Server 2000中传递大于varchar(8000)的字符串参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果将字符串参数定义为大于8000的大小,则会出现编译错误

You get a compilation error if you define the string parameter to have a size greater than 8000

例如

The size (9000) given to the type 'varchar' exceeds the maximum allowed for any data type (8000).

有什么想法吗?

推荐答案

在sql 2000中,对于大于8000的字符串,您需要将其存储为TEXT而不是varchar.

you need to store it as TEXT instead of varchar for string larger than 8000 in sql 2000

这篇关于如何在SQL Server 2000中传递大于varchar(8000)的字符串参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆