Friday, March 23, 2012
Query for Replication Status
We have 50 databases in Merge Replication.
We want to know the replication status (replicating or failed) using query,
Any query is there to find out the status?
Please advise me.
Rgds,
Soura
Soura,
you could have a look at sp_MSenum_merge_subscriptions. It takes the last
value for a merge agent in MSmerge_history and looks at the runstatus value.
Alternatively, you could use my proc which works against job states directly
(http://www.replicationanswers.com/Do...unningJobs.txt). These
could be mapped to : -- 1 = Executing, 2 = Waiting For Thread, 3 = Between
Retries, 4 = Idle, 5 = Suspended, 6 = [obsolete], 7 =
PerformingCompletionActions.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Tuesday, March 20, 2012
Query Execution failed for dataset error / the syntax for " " is incorrect
Hi,
Am totally new to MDX Queries.
I got this error while previewing a report that we had made. It goes like this --
Query execution failed for dataset 'some_dataset'.
Parser: the syntax for 'some_character' is incorrect.
What was figured out was this error shows up only for those values in a particular dropdown list which are multiword. Eg : My Company Technology and not for those values which a re single word. Eg : Company
what could be the possible problem and the solution to that.
Try to use [My Company Technology] as parameter value.|||I dont wish to hard code the values.
It should be dynamic
|||Hi Madu,
here you can find the rules for the identifiers in MDX:
http://msdn2.microsoft.com/en-us/library/ms145572.aspx
Query Execution Failed for Dataset (Beginner)
I got this Error, Query Execution for Dataset 'Source'.
When i try to run a report that is actually a drillthrough from another report. It runs fine in Report Designer, and when i deploy to my Local server. But when i deploy it to my virtual Report Server, I get this error messege. Why is it doing this? and where can i see errors for this type of stuff, so i can figure this out. This uses the same Datasource as the report linked from it. That report works fine, why wont this one? any ideas?
Look for the report server log at this location C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles if installed to the default location.|||A collegue of mine helped me figure this one out. My stored procedure was not set to public in the properties section. Thats why it worked on my local computer and not on the report server.query execution failed for dataset
users access. They are all located in the Cg Role, i created. Here's the
delima, I added a new user and to this role. The user can view report
manager, view the folders, and view the reports..but when they try to run a
report, they get this error.
query execution failed for dataset "CrashStatisticalYear" (rsError
executingcommand)
She has access to everything, why is she the only one getting this error'
Please Help!It seems like she doesnt have access to a specific table inside that
dataset.
"Tenchy" <Tenchy@.discussions.microsoft.com> wrote in message
news:4088044D-2DD6-4FB1-A9BC-59BED72B1C24@.microsoft.com...
> have all my reports on a server, and so far have had no problems giving
> users access. They are all located in the Cg Role, i created. Here's the
> delima, I added a new user and to this role. The user can view report
> manager, view the folders, and view the reports..but when they try to run
> a
> report, they get this error.
>
> query execution failed for dataset "CrashStatisticalYear" (rsError
> executingcommand)
>
> She has access to everything, why is she the only one getting this error'
>
> Please Help!
>
Query execution failed for data set...
Query execution failed for data set<dataset name>
Does anyone know why this error could be coming up? If I log in as a member
of the Administrators group the report runs fine.If I run it as a user that
I have given every permission to (Browser, Content Manager, etc.) I get the
error.
TIA,
Jarryd.On Jul 20, 7:14 am, "Jarryd" <jar...@.community.nospam> wrote:
> Hi,
> Query execution failed for data set<dataset name>
> Does anyone know why this error could be coming up? If I log in as a member
> of the Administrators group the report runs fine.If I run it as a user that
> I have given every permission to (Browser, Content Manager, etc.) I get the
> error.
> TIA,
> Jarryd.
You will want to make sure that the default DB user account that the
report is running under has execute permissions on the stored
procedure in the dataset, if you're using one. If you're not using
one, make sure that the default DB user account has select permissions
on any tables used in the query. Note that DB user account/permissions
are not the same as Report Manager/Windows user account/permissions.
Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant|||You nailed it dude. Thanks for that.
Jarryd
"EMartinez" <emartinez.pr1@.gmail.com> wrote in message
news:1184936231.667037.306150@.22g2000hsm.googlegroups.com...
> On Jul 20, 7:14 am, "Jarryd" <jar...@.community.nospam> wrote:
>> Hi,
>> Query execution failed for data set<dataset name>
>> Does anyone know why this error could be coming up? If I log in as a
>> member
>> of the Administrators group the report runs fine.If I run it as a user
>> that
>> I have given every permission to (Browser, Content Manager, etc.) I get
>> the
>> error.
>> TIA,
>> Jarryd.
>
> You will want to make sure that the default DB user account that the
> report is running under has execute permissions on the stored
> procedure in the dataset, if you're using one. If you're not using
> one, make sure that the default DB user account has select permissions
> on any tables used in the query. Note that DB user account/permissions
> are not the same as Report Manager/Windows user account/permissions.
> Hope this helps.
> Regards,
> Enrique Martinez
> Sr. Software Consultant
>
Query execution failed for data set ''RS_MeterReading
Hi,
We are using SQL 2005 server for generating reports.When we ran the reports it taking so much time after some time it shows this error:
ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. > Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Can you help me out.
Thanks,
--Amit
Hi AMITMEENA
Can you check the Report Query whether it contains all valid columns and tables.
This type of Error may Occur when we are trying to Query the Columns that are not related the tables present in the Query
|||Hi
This looks like Sql query/procedure error. Check the dataset query/procedure in Sql Query analyzer.
Senthil
|||Yes ,I did this thing also.But When we ran the " StoreProcedure in Queranalyzer it is working fine ..I am getting the data within 10 sec. for all system.But When we ran the same report from reportviewer..we are getting this eror "ERROR: An exception has occurred in data source . Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set . > System.Data.SqlClient.SqlException: A severe error occurred on the current command"
Can give some inputs.
Your inputs would be appreciated.
|||Could this be a permissions problem? IOW, does the identity executing the query through RS have the permissions it needs to execute the proc?
>L<
|||can you give me some detail expaination.I didn't understand what does it?
Thanks,
Amit
|||What didn't you understand? Checking the permissions for a sproc? Or something else in this thread?
>L<
|||I have also increase the SesionTimeOut upto 6000sec. but still am getting that error.So i am sending the log files of system.here we want to run the Performancereport,it works fine when we ran this report in QueryAnalyzer but when i ran that report in WebReorting am getting that error log files.:--
|||Does the report run under the credentials of the user or (as probably has to be for a snapshot) are you storing the credentials with/in report server?
It looks like you're creating a snapshot here.
So, under what credentials is that running? And does that identity have permissions to execute this stored procedure in the appropriate database?
(going to bed now, won't see your reply immediately)
>L<
|||I need some more explaination|||Hi moderator,
Can you delete my all threads from your system.
Thanks
A
|||My team is also facing similar problem. The RS trace logs report:
w3wp!processing!13!9/26/2007-15:31:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'. > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Operation cancelled by user.
In our system, Report Server and Database are on different machines. Report Server access database using a service account who has stored proc execute permissions on database.
Problem comes only if the query execution time exceeds 5 mins. Otherwise the report gets generated successfully.
I suspected this to be some timeout issue. But I have checked that all timeout settings in rs config files are as default.
Any pointers?
Thanks
puns
pun_iit@.hotmail.com
Query execution failed for data set ''RS_MeterReading
Hi,
We are using SQL 2005 server for generating reports.When we ran the reports it taking so much time after some time it shows this error:
ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. > Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Can you help me out.
Thanks,
--Amit
Hi AMITMEENA
Can you check the Report Query whether it contains all valid columns and tables.
This type of Error may Occur when we are trying to Query the Columns that are not related the tables present in the Query
|||Hi
This looks like Sql query/procedure error. Check the dataset query/procedure in Sql Query analyzer.
Senthil
|||Yes ,I did this thing also.But When we ran the " StoreProcedure in Queranalyzer it is working fine ..I am getting the data within 10 sec. for all system.But When we ran the same report from reportviewer..we are getting this eror "ERROR: An exception has occurred in data source . Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set . > System.Data.SqlClient.SqlException: A severe error occurred on the current command"
Can give some inputs.
Your inputs would be appreciated.
|||Could this be a permissions problem? IOW, does the identity executing the query through RS have the permissions it needs to execute the proc?
>L<
|||can you give me some detail expaination.I didn't understand what does it?
Thanks,
Amit
|||What didn't you understand? Checking the permissions for a sproc? Or something else in this thread?
>L<
|||I have also increase the SesionTimeOut upto 6000sec. but still am getting that error.So i am sending the log files of system.here we want to run the Performancereport,it works fine when we ran this report in QueryAnalyzer but when i ran that report in WebReorting am getting that error log files.:--
|||Does the report run under the credentials of the user or (as probably has to be for a snapshot) are you storing the credentials with/in report server?
It looks like you're creating a snapshot here.
So, under what credentials is that running? And does that identity have permissions to execute this stored procedure in the appropriate database?
(going to bed now, won't see your reply immediately)
>L<
|||I need some more explaination|||Hi moderator,
Can you delete my all threads from your system.
Thanks
A
|||My team is also facing similar problem. The RS trace logs report:
w3wp!processing!13!9/26/2007-15:31:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'. > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Operation cancelled by user.
In our system, Report Server and Database are on different machines. Report Server access database using a service account who has stored proc execute permissions on database.
Problem comes only if the query execution time exceeds 5 mins. Otherwise the report gets generated successfully.
I suspected this to be some timeout issue. But I have checked that all timeout settings in rs config files are as default.
Any pointers?
Thanks
puns
pun_iit@.hotmail.com
Query execution failed for data set ''RS_MeterReading
Hi,
We are using SQL 2005 server for generating reports.When we ran the reports it taking so much time after some time it shows this error:
ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. > Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Can you help me out.
Thanks,
--Amit
Hi AMITMEENA
Can you check the Report Query whether it contains all valid columns and tables.
This type of Error may Occur when we are trying to Query the Columns that are not related the tables present in the Query
|||Hi
This looks like Sql query/procedure error. Check the dataset query/procedure in Sql Query analyzer.
Senthil
|||Yes ,I did this thing also.But When we ran the " StoreProcedure in Queranalyzer it is working fine ..I am getting the data within 10 sec. for all system.But When we ran the same report from reportviewer..we are getting this eror "ERROR: An exception has occurred in data source . Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set . > System.Data.SqlClient.SqlException: A severe error occurred on the current command"
Can give some inputs.
Your inputs would be appreciated.
|||Could this be a permissions problem? IOW, does the identity executing the query through RS have the permissions it needs to execute the proc?
>L<
|||can you give me some detail expaination.I didn't understand what does it?
Thanks,
Amit
|||What didn't you understand? Checking the permissions for a sproc? Or something else in this thread?
>L<
|||I have also increase the SesionTimeOut upto 6000sec. but still am getting that error.So i am sending the log files of system.here we want to run the Performancereport,it works fine when we ran this report in QueryAnalyzer but when i ran that report in WebReorting am getting that error log files.:--
|||Does the report run under the credentials of the user or (as probably has to be for a snapshot) are you storing the credentials with/in report server?
It looks like you're creating a snapshot here.
So, under what credentials is that running? And does that identity have permissions to execute this stored procedure in the appropriate database?
(going to bed now, won't see your reply immediately)
>L<
|||I need some more explaination|||Hi moderator,
Can you delete my all threads from your system.
Thanks
A
|||My team is also facing similar problem. The RS trace logs report:
w3wp!processing!13!9/26/2007-15:31:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'. > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Operation cancelled by user.
In our system, Report Server and Database are on different machines. Report Server access database using a service account who has stored proc execute permissions on database.
Problem comes only if the query execution time exceeds 5 mins. Otherwise the report gets generated successfully.
I suspected this to be some timeout issue. But I have checked that all timeout settings in rs config files are as default.
Any pointers?
Thanks
puns
pun_iit@.hotmail.com
Query execution failed for data set ''RS_MeterReading
Hi,
We are using SQL 2005 server for generating reports.When we ran the reports it taking so much time after some time it shows this error:
ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. > Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Can you help me out.
Thanks,
--Amit
Hi AMITMEENA
Can you check the Report Query whether it contains all valid columns and tables.
This type of Error may Occur when we are trying to Query the Columns that are not related the tables present in the Query
|||Hi
This looks like Sql query/procedure error. Check the dataset query/procedure in Sql Query analyzer.
Senthil
|||Yes ,I did this thing also.But When we ran the " StoreProcedure in Queranalyzer it is working fine ..I am getting the data within 10 sec. for all system.But When we ran the same report from reportviewer..we are getting this eror "ERROR: An exception has occurred in data source . Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set . > System.Data.SqlClient.SqlException: A severe error occurred on the current command"
Can give some inputs.
Your inputs would be appreciated.
|||Could this be a permissions problem? IOW, does the identity executing the query through RS have the permissions it needs to execute the proc?
>L<
|||can you give me some detail expaination.I didn't understand what does it?
Thanks,
Amit
|||What didn't you understand? Checking the permissions for a sproc? Or something else in this thread?
>L<
|||I have also increase the SesionTimeOut upto 6000sec. but still am getting that error.So i am sending the log files of system.here we want to run the Performancereport,it works fine when we ran this report in QueryAnalyzer but when i ran that report in WebReorting am getting that error log files.:--
|||Does the report run under the credentials of the user or (as probably has to be for a snapshot) are you storing the credentials with/in report server?
It looks like you're creating a snapshot here.
So, under what credentials is that running? And does that identity have permissions to execute this stored procedure in the appropriate database?
(going to bed now, won't see your reply immediately)
>L<
|||I need some more explaination|||Hi moderator,
Can you delete my all threads from your system.
Thanks
A
|||My team is also facing similar problem. The RS trace logs report:
w3wp!processing!13!9/26/2007-15:31:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'. > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Operation cancelled by user.
In our system, Report Server and Database are on different machines. Report Server access database using a service account who has stored proc execute permissions on database.
Problem comes only if the query execution time exceeds 5 mins. Otherwise the report gets generated successfully.
I suspected this to be some timeout issue. But I have checked that all timeout settings in rs config files are as default.
Any pointers?
Thanks
puns
pun_iit@.hotmail.com
Query execution failed for data set ''RS_MeterReading
Hi,
We are using SQL 2005 server for generating reports.When we ran the reports it taking so much time after some time it shows this error:
ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. > Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Can you help me out.
Thanks,
--Amit
Hi AMITMEENA
Can you check the Report Query whether it contains all valid columns and tables.
This type of Error may Occur when we are trying to Query the Columns that are not related the tables present in the Query
|||Hi
This looks like Sql query/procedure error. Check the dataset query/procedure in Sql Query analyzer.
Senthil
|||Yes ,I did this thing also.But When we ran the " StoreProcedure in Queranalyzer it is working fine ..I am getting the data within 10 sec. for all system.But When we ran the same report from reportviewer..we are getting this eror "ERROR: An exception has occurred in data source . Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set . > System.Data.SqlClient.SqlException: A severe error occurred on the current command"
Can give some inputs.
Your inputs would be appreciated.
|||Could this be a permissions problem? IOW, does the identity executing the query through RS have the permissions it needs to execute the proc?
>L<
|||can you give me some detail expaination.I didn't understand what does it?
Thanks,
Amit
|||What didn't you understand? Checking the permissions for a sproc? Or something else in this thread?
>L<
|||I have also increase the SesionTimeOut upto 6000sec. but still am getting that error.So i am sending the log files of system.here we want to run the Performancereport,it works fine when we ran this report in QueryAnalyzer but when i ran that report in WebReorting am getting that error log files.:--
|||Does the report run under the credentials of the user or (as probably has to be for a snapshot) are you storing the credentials with/in report server?
It looks like you're creating a snapshot here.
So, under what credentials is that running? And does that identity have permissions to execute this stored procedure in the appropriate database?
(going to bed now, won't see your reply immediately)
>L<
|||I need some more explaination|||Hi moderator,
Can you delete my all threads from your system.
Thanks
A
|||My team is also facing similar problem. The RS trace logs report:
w3wp!processing!13!9/26/2007-15:31:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'. > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Operation cancelled by user.
In our system, Report Server and Database are on different machines. Report Server access database using a service account who has stored proc execute permissions on database.
Problem comes only if the query execution time exceeds 5 mins. Otherwise the report gets generated successfully.
I suspected this to be some timeout issue. But I have checked that all timeout settings in rs config files are as default.
Any pointers?
Thanks
puns
pun_iit@.hotmail.com
Query execution failed for data set ''RS_MeterReading
Hi,
We are using SQL 2005 server for generating reports.When we ran the reports it taking so much time after some time it shows this error:
ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. > Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Can you help me out.
Thanks,
--Amit
Hi AMITMEENA
Can you check the Report Query whether it contains all valid columns and tables.
This type of Error may Occur when we are trying to Query the Columns that are not related the tables present in the Query
|||Hi
This looks like Sql query/procedure error. Check the dataset query/procedure in Sql Query analyzer.
Senthil
|||Yes ,I did this thing also.But When we ran the " StoreProcedure in Queranalyzer it is working fine ..I am getting the data within 10 sec. for all system.But When we ran the same report from reportviewer..we are getting this eror "ERROR: An exception has occurred in data source . Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set . > System.Data.SqlClient.SqlException: A severe error occurred on the current command"
Can give some inputs.
Your inputs would be appreciated.
|||Could this be a permissions problem? IOW, does the identity executing the query through RS have the permissions it needs to execute the proc?
>L<
|||can you give me some detail expaination.I didn't understand what does it?
Thanks,
Amit
|||What didn't you understand? Checking the permissions for a sproc? Or something else in this thread?
>L<
|||I have also increase the SesionTimeOut upto 6000sec. but still am getting that error.So i am sending the log files of system.here we want to run the Performancereport,it works fine when we ran this report in QueryAnalyzer but when i ran that report in WebReorting am getting that error log files.:--
|||Does the report run under the credentials of the user or (as probably has to be for a snapshot) are you storing the credentials with/in report server?
It looks like you're creating a snapshot here.
So, under what credentials is that running? And does that identity have permissions to execute this stored procedure in the appropriate database?
(going to bed now, won't see your reply immediately)
>L<
|||I need some more explaination|||Hi moderator,
Can you delete my all threads from your system.
Thanks
A
|||My team is also facing similar problem. The RS trace logs report:
w3wp!processing!13!9/26/2007-15:31:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'. > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Operation cancelled by user.
In our system, Report Server and Database are on different machines. Report Server access database using a service account who has stored proc execute permissions on database.
Problem comes only if the query execution time exceeds 5 mins. Otherwise the report gets generated successfully.
I suspected this to be some timeout issue. But I have checked that all timeout settings in rs config files are as default.
Any pointers?
Thanks
puns
pun_iit@.hotmail.com
Query execution failed for data set <name> For more information about this error navigate
I have created and deployed my first report. It renders fine for me and the other database admin. When others attempt to view it, we get the error
Query execution failed for data set 'periods'. (rsErrorExecutingCommand), For more information about this error navigate to the report server on the local server machine, or enable remote errors
Initially, We created a local group on the machine that hosts both the database and webserver and added the individuals to that group. Then, within SRS Report manager, we added that group to the Browswer role of the report.
The error message was slightly different, in that it couldn't even open the Datasource.
We then added an individual to the database as dbreader, and got the above message. It apprently is starting to render, and when it encounters the first query (dataset "periods", which populates a drop down list for a parameter), it chokes. BTW, the Periods dataset executes a stored procedure dbo.Period_List that has no parameters. It returns a list of reporting periods.
I could not figure out how to "enable remote errors" or find an error log on the server. The C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles Log files did not appear to record any errors.
Please advise!
Have you given execute permissions on the stored procedure? You can try troubleshooting with SQL Server Profiler (http://msdn2.microsoft.com/en-us/library/ms187929.aspx), but that might be like hitting a gnat with a sledge hammer.
Larry
|||I want to add some information. We recently enabled remote errors, and found that EXECUTE permission on the stored procedure was denied.
Does this mean that we have to grant permissions on every stored procedure to User Groups?
I love SRS, but this is turning into an Admin nightmare.
|||Ok, let's back up a second and take another run at this. As long as you don't require the data on your reports to change based on who is viewing them, use a shared DataSource with stored credentials (http://technet.microsoft.com/en-us/library/ms178308.aspx). That way, you admin a single user and everyone (including you during development) sees the same report.
To continue to use Windows Authentication, yes, you would need to grant permissions for every stored procedure that you want SSRS to use to any user that will run a report using that stored procedure.
Larry
|||thank you!
Ok, the first option sounds like the way to go for the moment, but something you said intrigued me...
"As long as you don't require the data on your reports to change based on who is viewing them..."
Actually, we would like to restrict what the users see based upon who they are, and haven't figured out how to do that yet. For example, if a person is from business unit A, we would like them only to see their business units data. All business units are in the same table however, so we would have to use a parameter or a filter, based upon the longin User ID. Not sure how to do this, any ideas?
|||Well, you could implement row level security to filter the results returned based on the user. Here is a tutorial from Books On Line (BOL) (http://msdn2.microsoft.com/en-us/library/ms365305.aspx) and here is a white paper discussing it (http://www.microsoft.com/technet/prodtechnol/sql/2005/multisec.mspx). It is a bit complex to get setup, but the results are well worth the effort.
Larry
Query execution failed for data set
Hi,
We are using SQL 2005 server for generating reports.When we ran the reports it taking so much time after some time it shows this error:
ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. > Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Can you help me out.
Thanks,
--Amit
Hi AMITMEENA
Can you check the Report Query whether it contains all valid columns and tables.
This type of Error may Occur when we are trying to Query the Columns that are not related the tables present in the Query
|||Hi
This looks like Sql query/procedure error. Check the dataset query/procedure in Sql Query analyzer.
Senthil
|||Yes ,I did this thing also.But When we ran the " StoreProcedure in Queranalyzer it is working fine ..I am getting the data within 10 sec. for all system.But When we ran the same report from reportviewer..we are getting this eror "ERROR: An exception has occurred in data source . Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set . > System.Data.SqlClient.SqlException: A severe error occurred on the current command"
Can give some inputs.
Your inputs would be appreciated.
|||Could this be a permissions problem? IOW, does the identity executing the query through RS have the permissions it needs to execute the proc?
>L<
|||can you give me some detail expaination.I didn't understand what does it?
Thanks,
Amit
|||What didn't you understand? Checking the permissions for a sproc? Or something else in this thread?
>L<
|||I have also increase the SesionTimeOut upto 6000sec. but still am getting that error.So i am sending the log files of system.here we want to run the Performancereport,it works fine when we ran this report in QueryAnalyzer but when i ran that report in WebReorting am getting that error log files.:--
|||Does the report run under the credentials of the user or (as probably has to be for a snapshot) are you storing the credentials with/in report server?
It looks like you're creating a snapshot here.
So, under what credentials is that running? And does that identity have permissions to execute this stored procedure in the appropriate database?
(going to bed now, won't see your reply immediately)
>L<
|||I need some more explaination|||Hi moderator,
Can you delete my all threads from your system.
Thanks
A
|||My team is also facing similar problem. The RS trace logs report:
w3wp!processing!13!9/26/2007-15:31:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'. > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Operation cancelled by user.
In our system, Report Server and Database are on different machines. Report Server access database using a service account who has stored proc execute permissions on database.
Problem comes only if the query execution time exceeds 5 mins. Otherwise the report gets generated successfully.
I suspected this to be some timeout issue. But I have checked that all timeout settings in rs config files are as default.
Any pointers?
Thanks
puns
pun_iit@.hotmail.com
Query execution failed for data set
Hi,
We are using SQL 2005 server for generating reports.When we ran the reports it taking so much time after some time it shows this error:
ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. > Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Can you help me out.
Thanks,
--Amit
Hi AMITMEENA
Can you check the Report Query whether it contains all valid columns and tables.
This type of Error may Occur when we are trying to Query the Columns that are not related the tables present in the Query
|||Hi
This looks like Sql query/procedure error. Check the dataset query/procedure in Sql Query analyzer.
Senthil
|||Yes ,I did this thing also.But When we ran the " StoreProcedure in Queranalyzer it is working fine ..I am getting the data within 10 sec. for all system.But When we ran the same report from reportviewer..we are getting this eror "ERROR: An exception has occurred in data source . Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set . > System.Data.SqlClient.SqlException: A severe error occurred on the current command"
Can give some inputs.
Your inputs would be appreciated.
|||Could this be a permissions problem? IOW, does the identity executing the query through RS have the permissions it needs to execute the proc?
>L<
|||can you give me some detail expaination.I didn't understand what does it?
Thanks,
Amit
|||What didn't you understand? Checking the permissions for a sproc? Or something else in this thread?
>L<
|||I have also increase the SesionTimeOut upto 6000sec. but still am getting that error.So i am sending the log files of system.here we want to run the Performancereport,it works fine when we ran this report in QueryAnalyzer but when i ran that report in WebReorting am getting that error log files.:--
|||Does the report run under the credentials of the user or (as probably has to be for a snapshot) are you storing the credentials with/in report server?
It looks like you're creating a snapshot here.
So, under what credentials is that running? And does that identity have permissions to execute this stored procedure in the appropriate database?
(going to bed now, won't see your reply immediately)
>L<
|||I need some more explaination|||Hi moderator,
Can you delete my all threads from your system.
Thanks
A
|||My team is also facing similar problem. The RS trace logs report:
w3wp!processing!13!9/26/2007-15:31:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'. > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Operation cancelled by user.
In our system, Report Server and Database are on different machines. Report Server access database using a service account who has stored proc execute permissions on database.
Problem comes only if the query execution time exceeds 5 mins. Otherwise the report gets generated successfully.
I suspected this to be some timeout issue. But I have checked that all timeout settings in rs config files are as default.
Any pointers?
Thanks
puns
pun_iit@.hotmail.com
Query execution failed for data set
Hi,
We are using SQL 2005 server for generating reports.When we ran the reports it taking so much time after some time it shows this error:
ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. > Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Can you help me out.
Thanks,
--Amit
Hi AMITMEENA
Can you check the Report Query whether it contains all valid columns and tables.
This type of Error may Occur when we are trying to Query the Columns that are not related the tables present in the Query
|||Hi
This looks like Sql query/procedure error. Check the dataset query/procedure in Sql Query analyzer.
Senthil
|||Yes ,I did this thing also.But When we ran the " StoreProcedure in Queranalyzer it is working fine ..I am getting the data within 10 sec. for all system.But When we ran the same report from reportviewer..we are getting this eror "ERROR: An exception has occurred in data source . Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set . > System.Data.SqlClient.SqlException: A severe error occurred on the current command"
Can give some inputs.
Your inputs would be appreciated.
|||Could this be a permissions problem? IOW, does the identity executing the query through RS have the permissions it needs to execute the proc?
>L<
|||can you give me some detail expaination.I didn't understand what does it?
Thanks,
Amit
|||What didn't you understand? Checking the permissions for a sproc? Or something else in this thread?
>L<
|||I have also increase the SesionTimeOut upto 6000sec. but still am getting that error.So i am sending the log files of system.here we want to run the Performancereport,it works fine when we ran this report in QueryAnalyzer but when i ran that report in WebReorting am getting that error log files.:--
|||Does the report run under the credentials of the user or (as probably has to be for a snapshot) are you storing the credentials with/in report server?
It looks like you're creating a snapshot here.
So, under what credentials is that running? And does that identity have permissions to execute this stored procedure in the appropriate database?
(going to bed now, won't see your reply immediately)
>L<
|||I need some more explaination|||Hi moderator,
Can you delete my all threads from your system.
Thanks
A
|||My team is also facing similar problem. The RS trace logs report:
w3wp!processing!13!9/26/2007-15:31:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'. > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Operation cancelled by user.
In our system, Report Server and Database are on different machines. Report Server access database using a service account who has stored proc execute permissions on database.
Problem comes only if the query execution time exceeds 5 mins. Otherwise the report gets generated successfully.
I suspected this to be some timeout issue. But I have checked that all timeout settings in rs config files are as default.
Any pointers?
Thanks
puns
pun_iit@.hotmail.com
Query execution failed for data set
Hi,
We are using SQL 2005 server for generating reports.When we ran the reports it taking so much time after some time it shows this error:
ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. > Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Can you help me out.
Thanks,
--Amit
Hi AMITMEENA
Can you check the Report Query whether it contains all valid columns and tables.
This type of Error may Occur when we are trying to Query the Columns that are not related the tables present in the Query
|||Hi
This looks like Sql query/procedure error. Check the dataset query/procedure in Sql Query analyzer.
Senthil
|||Yes ,I did this thing also.But When we ran the " StoreProcedure in Queranalyzer it is working fine ..I am getting the data within 10 sec. for all system.But When we ran the same report from reportviewer..we are getting this eror "ERROR: An exception has occurred in data source . Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set . > System.Data.SqlClient.SqlException: A severe error occurred on the current command"
Can give some inputs.
Your inputs would be appreciated.
|||Could this be a permissions problem? IOW, does the identity executing the query through RS have the permissions it needs to execute the proc?
>L<
|||can you give me some detail expaination.I didn't understand what does it?
Thanks,
Amit
|||What didn't you understand? Checking the permissions for a sproc? Or something else in this thread?
>L<
|||I have also increase the SesionTimeOut upto 6000sec. but still am getting that error.So i am sending the log files of system.here we want to run the Performancereport,it works fine when we ran this report in QueryAnalyzer but when i ran that report in WebReorting am getting that error log files.:--
|||Does the report run under the credentials of the user or (as probably has to be for a snapshot) are you storing the credentials with/in report server?
It looks like you're creating a snapshot here.
So, under what credentials is that running? And does that identity have permissions to execute this stored procedure in the appropriate database?
(going to bed now, won't see your reply immediately)
>L<
|||I need some more explaination|||Hi moderator,
Can you delete my all threads from your system.
Thanks
A
|||My team is also facing similar problem. The RS trace logs report:
w3wp!processing!13!9/26/2007-15:31:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'msdb'. > System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
Operation cancelled by user.
In our system, Report Server and Database are on different machines. Report Server access database using a service account who has stored proc execute permissions on database.
Problem comes only if the query execution time exceeds 5 mins. Otherwise the report gets generated successfully.
I suspected this to be some timeout issue. But I have checked that all timeout settings in rs config files are as default.
Any pointers?
Thanks
puns
pun_iit@.hotmail.com
Query execution failed
I have a group of reports using a shared datasource. Going to the preview of the report works fine in the report designer, but when I try and view it from a browser (deployed on a website), it gives the error:
"An error has occurred during report processing.
Query execution failed for data set 'DataSet1_ticketInfo'.
Failed to parse SQL.[long sql query here]"
If there's a problem with it, I don't get why it works in preview mode. I'm using SQL server 2005.
Thanks.
Hi,
Can you provide some more details about your Report
1) 'DataSet1_ticketInfo' - Is this your main DataSet ie; the result of this DS is used on the Report body OR
2) Are you using 'DataSet1_ticketInfo' DS for populating Report Parameters OR
3) Your DS contains some script (query or Stored Proc) that requires special permissions to be executed through your asp.net web-site
I think you may be missing some params used by above mentioned DS, which may be causing the error.
Regards,
abhi_viking
|||That dataset is the main dataset for the report. One of these reports (all are having the same problem) does take parameters, but I have a default value set, which actually shows up in the datepicker correctly. This particular dataset doesn't take any parameters. The actual report doesn't load however (but does in preview)
|||
Hi,
Are you using some code that requires permission to be executed thro' your asp.net website?
If possible, do paste ur DS code here, that might help us solve your issue.
Regards,
abhi_viking
|||How would I get the actual code of the DS? Just to be clear, this is a server report, not a client one. I've verified that the conn. string is correct and does connect ok.|||After talking to MS support, it seems that if you use a column name alias (ie "as") in the select statement, the report viewer refuses to parse the SQL. It seems to be some sort of bug. We were able to get around it by having the report run a stored procedure, which allowed the column names. Hope this helps anyone else that runs into this issue.
Query execution failed
I have a group of reports using a shared datasource. Going to the preview of the report works fine in the report designer, but when I try and view it from a browser (deployed on a website), it gives the error:
"An error has occurred during report processing.
Query execution failed for data set 'DataSet1_ticketInfo'.
Failed to parse SQL.[long sql query here]"
If there's a problem with it, I don't get why it works in preview mode. I'm using SQL server 2005.
Thanks.
Hi,
Can you provide some more details about your Report
1) 'DataSet1_ticketInfo' - Is this your main DataSet ie; the result of this DS is used on the Report body OR
2) Are you using 'DataSet1_ticketInfo' DS for populating Report Parameters OR
3) Your DS contains some script (query or Stored Proc) that requires special permissions to be executed through your asp.net web-site
I think you may be missing some params used by above mentioned DS, which may be causing the error.
Regards,
abhi_viking
|||That dataset is the main dataset for the report. One of these reports (all are having the same problem) does take parameters, but I have a default value set, which actually shows up in the datepicker correctly. This particular dataset doesn't take any parameters. The actual report doesn't load however (but does in preview)
|||
Hi,
Are you using some code that requires permission to be executed thro' your asp.net website?
If possible, do paste ur DS code here, that might help us solve your issue.
Regards,
abhi_viking
|||How would I get the actual code of the DS? Just to be clear, this is a server report, not a client one. I've verified that the conn. string is correct and does connect ok.|||After talking to MS support, it seems that if you use a column name alias (ie "as") in the select statement, the report viewer refuses to parse the SQL. It seems to be some sort of bug. We were able to get around it by having the report run a stored procedure, which allowed the column names. Hope this helps anyone else that runs into this issue.
Query execution failed
I have a group of reports using a shared datasource. Going to the preview of the report works fine in the report designer, but when I try and view it from a browser (deployed on a website), it gives the error:
"An error has occurred during report processing.
Query execution failed for data set 'DataSet1_ticketInfo'.
Failed to parse SQL.[long sql query here]"
If there's a problem with it, I don't get why it works in preview mode. I'm using SQL server 2005.
Thanks.
Hi,
Can you provide some more details about your Report
1) 'DataSet1_ticketInfo' - Is this your main DataSet ie; the result of this DS is used on the Report body OR
2) Are you using 'DataSet1_ticketInfo' DS for populating Report Parameters OR
3) Your DS contains some script (query or Stored Proc) that requires special permissions to be executed through your asp.net web-site
I think you may be missing some params used by above mentioned DS, which may be causing the error.
Regards,
abhi_viking
|||That dataset is the main dataset for the report. One of these reports (all are having the same problem) does take parameters, but I have a default value set, which actually shows up in the datepicker correctly. This particular dataset doesn't take any parameters. The actual report doesn't load however (but does in preview)
|||
Hi,
Are you using some code that requires permission to be executed thro' your asp.net website?
If possible, do paste ur DS code here, that might help us solve your issue.
Regards,
abhi_viking
|||How would I get the actual code of the DS? Just to be clear, this is a server report, not a client one. I've verified that the conn. string is correct and does connect ok.|||After talking to MS support, it seems that if you use a column name alias (ie "as") in the select statement, the report viewer refuses to parse the SQL. It seems to be some sort of bug. We were able to get around it by having the report run a stored procedure, which allowed the column names. Hope this helps anyone else that runs into this issue.