关于SSRS view report

mychaos 2008-08-04 09:33:12
SSRS preview report 运行正常,可以得到正确的结果,可是deploy之后出现了以下错误:

An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for data set 'ProjectNameDataSet'. (rsErrorExecutingCommand)
ORA-01036: 非法的变量名/编号

附:ProjectNameDataSet 如下:
select distinct project_name
from dbo.project
where (date_entry between (@StartDate) and (@EndDate))
order by project_name
StartDate和EndDate两个参数为DateTime类型

在下实在不知道问题出在哪里?有经验的大侠帮帮忙。

...全文
76 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
mychaos 2008-08-08
  • 打赏
  • 举报
回复
谢谢二位,问题已经解决了,
我连接的DB是SQL Server,所以用的是@是正确的。
我的原因是:在我的http://localhost/reports下的data Source 中我的这个project的datasource与其他project的datasource重名了。所以出现了这样的错误。
犯了个非常低级的错误,大家引以为戒吧!!
hero_girl 2008-08-07
  • 打赏
  • 举报
回复
oracle参数表示方法 :name
hery2002 2008-08-06
  • 打赏
  • 举报
回复
ORA-01036: 非法的变量名/编号
--------------------------
ORACLE的参数名貌似一个“:”号
试试
select distinct project_name 
from dbo.project
where (date_entry between (:StartDate) and (:EndDate))
order by project_name
Book Description SQL Server 2012 accounts for a huge share of the database market, and more and more companies are implementing SSRS as part of their BI implementation. Its Reporting Services offers a comprehensive, highly scalable solution that enables real-time decision making. SQL Server 2012 Reporting Services Blueprints is intended to be just that, a series of Blueprints – things that work straight out of the box and that mirror what a real job requires real report developers to do. You will not be bored with an “Introduction to X” or “What’s under the hood of Y”. We go straight to the practical development of reporting skills, explaining actions as they are taken. This book is a step-by-step, task-driven tutorial. It provides enterprise reporting blueprints that address your day-to-day issues and requirements. Right from the very start, you’ll learn SSRS beyond the basics, giving you the skills to create the best reports for any task. Explore the possibilities, master your options, and choose the best tool for the job. What you will learn from this book Fully understand the structure and properties of your reports Add interactive elements to your reports Use parameters effectively in different scenarios Utilize a range of advanced graphs Make use of geospatial data and maps Use OLAP Cubes in your reports Deploy your SSRS projects Integrate SharePoint, PowerPivot, and Power View into your reports Approach Follow the fictional John Kirkland through a series of real-world reporting challenges based on actual business conditions. Use his detailed blueprints to develop your own reports for every requirement. Who this book is written for This book is for report developers, data analysts, and database administrators struggling to master the complex world of effective reporting in SQL Server 2012. Knowledge of how data sources and data sets work will greatly help readers to speed through the tutorials. Book Details Paperback: 246 pages Publisher: Packt Publishing (October 2013) Language: English ISBN-10: 1849685088 ISBN-13: 978-1849685085

6,108

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 数据库报表
社区管理员
  • 数据库报表社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧