Solved

SSRS 2005 error message

Posted on 2013-01-14
7
381 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 65

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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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 200 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Hi All, I am here to write a simple article to move SSRS (SQL Server Reporting Services) reports from one server to another. When I have faced the same issue to move reports those were developed by developer on development server and now need to …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now