Solved

SSRS 2005 error message

Posted on 2013-01-14
7
390 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

 
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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Have you ever had to extract data from a Microsoft SQL Server database and export it to an Excel file, but did not want to use a DTS package? The concept in this article is not new, but it is the answer and will also work on 64-bit SQL boxes.   …
This code started out as a fix for a customer that had incoming data that was hunderds of numbers and words long that was to fit in one column. The problem was that the customer did not want to split words or numbers when wrapping in the column. …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

632 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