Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Reporting Services
»
Reporting Services
»
SSRS 2008R2 Data set Properties Error
SSRS 2008R2 Data set Properties Error
Rate Topic
Display Mode
Topic Options
Author
Message
skgudi2009
skgudi2009
Posted Sunday, February 03, 2013 1:23 AM
Grasshopper
Group: General Forum Members
Last Login: Thursday, February 21, 2013 9:49 AM
Points: 16,
Visits: 112
I have a stored procedure which i have to design the report for this i have connected to the datasource and in dataset properties i have selected the sp and tried to refresh the fields i have given the parameters also but after sometimes error message is giving that
(could not create a list of fields for the query.Verify that you can connect to the data source and that your query syntax is correct)[size="7"][/size]
But the stored procedure is running and data is also comming correctly when i execute in sql
Post #1414990
anthony.green
anthony.green
Posted Monday, February 04, 2013 1:32 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
does the account running the datasource have access to run the proc?
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1415158
skgudi2009
skgudi2009
Posted Monday, February 04, 2013 4:46 AM
Grasshopper
Group: General Forum Members
Last Login: Thursday, February 21, 2013 9:49 AM
Points: 16,
Visits: 112
Yes the datasource have access to run the proc i have designed so many reports using the same datasource and same database.
Another thing is when we select new report option and select this sp and execute data is comming but after clicking ok it is coming out of the screen.
If we select existing item option and select this sp that error message is comming
Post #1415229
Steven.Howes
Steven.Howes
Posted Monday, February 04, 2013 10:45 AM
Old Hand
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 12:49 PM
Points: 370,
Visits: 1,657
I know That's usually a different error message by do you have any duplicate column names? Maybe there are some column names that BIDS doesn't like?
Post #1415405
davoscollective
davoscollective
Posted Tuesday, February 05, 2013 3:27 PM
SSC-Addicted
Group: General Forum Members
Last Login: 2 days ago @ 8:01 PM
Points: 408,
Visits: 688
One issue with stored procedures in reporting services is that if the stored procedure is quite complex, e.g. has multiple select statements, that SSRS has trouble parsing them correctly to determine the columns.
The usual workaround for that is to put a 'dummy' query in the very beginning of the stored procedure that has the same columns & datatypes as are returned by the procedure. SSRS will start to parse the stored procedure, get to that first select query and then use it as the columns for the report.
This BOL article
has the key info:
See the heading "Understanding Report Datasets and Queries"
"If multiple result sets are retrieved through a single query, only the first result set is processed, and all other result sets are ignored".
It is also possible to explicitly set the columns required for the query (edit dataset properties and then "fields") and set the stored procedure as the dataset query without executing the query or letting it refresh fields.I don't recommend doing that though, the other way is easier. You just have to make sure that if you change your SP that you also change the dummy query to keep the fields the same as those that are actually returned.
Post #1416132
mmartin1
mmartin1
Posted Thursday, April 18, 2013 10:50 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Yesterday @ 11:53 AM
Points: 194,
Visits: 643
One issue with stored procedures in reporting services is that if the stored procedure is quite complex, e.g. has multiple select statements, that SSRS has trouble parsing them correctly to determine the columns.
Very true. You may have a SP with branched logic.. IE...
If @var <5
-- do something
select col1, col2, col3
else if @var>=5 <10
--do something else
select col1, col2, col3, col4
else
--do this instead
select col1, col2, col3, col4, col5
This creates confusion when SSRS is trying to create the dataset columns.
Post #1444007
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.