C#配置数据源 [英] C# Configure Data Source

查看:138
本文介绍了C#配置数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在尝试在C#中配置图表,但我一直收到此错误消息:
变量名称< name>已经声明.变量名称在查询批处理或存储过程中必须是唯一的."

我试图更改变量名称,但该消息一直显示.

谢谢.

这是代码:

Hello,

Im trying to configure a Chart in C# but i keep getting this error Message :
"The variable name <name> as already been declared. Variable names must be unique within a query batch or a storage procedure."

I tried to change the varible name and that message keeps showing.

Thanks.

Heres the code :

declare @var varchar
SET @var = ''



继承人PrtScreen
http://postimage.org/image/saavng62p/ [



Heres a PrtScreen
http://postimage.org/image/saavng62p/[^]

推荐答案

哦,您不能在.net中的数据源

您只能编写"select ....","delete ...."等查询.
但是您不能声明这样的东西,如果需要的话,将不得不使用存储过程并从存储过程中选择输出.
oh you can''t do that on queries in a datasource in .net

you can only write queries like "select ...." "delete...." etc.
but you can not declare stuff like that, if you need it, will have to do it using an stored procedure and select the output from the stored proc.


这篇关于C#配置数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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