SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSRS 2008R2 Data set Properties Error


SSRS 2008R2 Data set Properties Error

Author
Message
skgudi2009
skgudi2009
SSC-Enthusiastic
SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)

Group: General Forum Members
Points: 184 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
anthony.green
anthony.green
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24402 Visits: 6519
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
When a question, really isn't a question - Jeff Smith
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


skgudi2009
skgudi2009
SSC-Enthusiastic
SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)SSC-Enthusiastic (184 reputation)

Group: General Forum Members
Points: 184 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
Steven.Howes
Steven.Howes
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1632 Visits: 2354
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?
davoscollective
davoscollective
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1659 Visits: 1008
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.
MMartin1
MMartin1
SSCertifiable
SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)

Group: General Forum Members
Points: 7225 Visits: 2033
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.

----------------------------------------------------
How to post forum questions to get the best help
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search