SQL Server 2000:数据类型的运算符无效.运算符等于加,类型等于 ntext [英] SQL Server 2000: Invalid operator for data type. Operator equals add, type equals ntext

查看:58
本文介绍了SQL Server 2000:数据类型的运算符无效.运算符等于加,类型等于 ntext的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个获取 Ntext 参数的存储过程.在存储过程中,我有一个 varchar 变量,我通过连接几个字符串来设置这个 varchar 变量.

I have a stored procedure which gets Ntext parameters. Inside the stored procedure, I have a varchar variable and I set this varchar variable by concatenating few strings.

此时我在编译时遇到以下错误.

I get the following error at this point, while compiling.

无效的数据类型运算符.运算符等于添加,类型等于 ntext.

Invalid operator for data type. Operator equals add, type equals ntext.

有人可以帮忙吗?

推荐答案

我犯了一个粗心的错误.我实际上是将 varchar 变量与 ntext 变量连接起来.由于 Ntext 连接是不允许的,我被卡住了.

I made a careless Mistake. I was actually concatenation my varchar variable with the ntext variable. As Ntext concatenation is not allowed, I got stuck.

这篇关于SQL Server 2000:数据类型的运算符无效.运算符等于加,类型等于 ntext的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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