本文介绍了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 postimage/image/saavng62p/ [ ^ ]
Heres a PrtScreen postimage/image/saavng62p/[^]
推荐答案哦,您不能在中的数据源 您只能编写"select ....","delete ...."等查询. 但是您不能声明这样的东西,如果需要的话,将不得不使用存储过程并从存储过程中选择输出. oh you can''t do that on queries in a datasource in 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#配置数据源
发布评论