Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SSRS 2005 error message

Posted on 2013-01-14
7
Medium Priority
?
393 Views
Last Modified: 2013-01-16
When I run a sql in sql server 2005 I can return results. The sql requires parameters.

When I run the same sql and declare my parameters in SSRS I get the following error message (attached):

I have declared my startdate as a datetime datatype in the paraemeters section.
SSRS-dstartdtae-error-message.GIF
0
Comment
Question by:Sanjeet
7 Comments
 
LVL 66

Expert Comment

by:Jim Horn
ID: 38776529
... and how are you populating it with a value when you run the report?
0
 
LVL 37

Expert Comment

by:ValentinoV
ID: 38777271
I assume @dStartDate is the name of the parameter in your query, right?  If that's the case, you probably forgot to link it with the parameter in the report.  That can be done through the Parameters tab on the Dataset properties.

See following article for a screenshot and some explanation: Designing Reports with SQL Server Reporting Services 2005

The chapter you'll be interested in is called Datasets and Parameters.
0
 

Author Comment

by:Sanjeet
ID: 38778394
I am using a datecalendar variable to populate the start and end dates (screen shot attached, How startdate get populated).

I have declared variables for the parameters to run the report and link it in the parameters in the report (screen shot attached, Parameter declaration). I did not use a dataset but a custom query to bring back the data.
How-startdate-get-populated.GIF
Parameter-declaration.GIF
0
[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

 
LVL 37

Expert Comment

by:ValentinoV
ID: 38778447
"I did not use a dataset but a custom query to bring back the data."

How do you get a custom query in your report without using a dataset?
0
 

Author Comment

by:Sanjeet
ID: 38778491
I am modifying an existing query. When I click on the data tab I see the custom query and no graphical interfaces with table joins. I may be misunderstanding data sets. (screen shot attached). Aren't the parameters declared in the layout tab? I attache an earlier screenshot.
Data-tab.GIF
0
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 38781695
Please make sure the Same name parameter is exists .
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 800 total points
ID: 38781819
"Aren't the parameters declared in the layout tab? I attache an earlier screenshot."

That screenshot did indeed show that you've created some report parameters.  But these parameters still need to get linked to the parameters in your query.  The report doesn't know this automatically, even when they've got the same name.

(I don't have 2005 around and the interface has changed a lot since then but I'll try to guide you based on screenshots.)

If you read through the article that I mentioned earlier, it shows a Dataset popup window with five tabs: Query, Fields, Data Options, Parameters, Filters.  That's the window you need to find.

If I remember well, you need to click those three dots (...) to the right of your dataset name to get that window (this is in the Data tab which you've shown in your last screenshot).
Another option might be to right-click inside the query window and choose something like "properties" but I'm not sure about that.

Once you've found it, switch to the Parameters tab and ensure all your query parameters are linked with your report parameters as shown in that same screenshot in the article.  The Name column is your query parameter, for instance @dStartDate.  And the Value column is your report parameter, for instance =Parameters!dStartDate.Value.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: This article is aimed at report developers who are used to developing reports using relational databases and have gotten a first-time assignment to develop reports on OLAP cubes. It demonstrates how to build a report using SQL Ser…
After much searching across the internet I have found that you could not set the name of the file you were attaching to dynamic report subscriptons in Microsoft Reporting Services. I did manage to find one article showing you how your could make a s…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 8 hours left to enroll

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question