如何在SQL Server 2000中传递大于varchar(8000)的字符串参数?

Jul*_*s A 3 t-sql sql-server parameters

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

例如

The size (9000) given to the type 'varchar' exceeds the maximum allowed for any data type (8000).
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

Chr*_*way 7

你需要将它存储为TEXT而不是varchar,用于sql 2000中大于8000的字符串