Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sql user canot use standard reports using MS SQL Management studio

Posted on 2013-06-20
6
Medium Priority
?
1,655 Views
Last Modified: 2013-06-27
Hi!

A user using SQL authentication via MS SQL Management Studio would like to use some standard reports on some databases, however errors are returned.

e.g. All transactions report (the main one to be used) returns
"Unable to retrieve data for this report. Following error occurred.
Msg 297, Level 16, State 1
The user does not have permission to perform this action"

(The same happens if I connect using this authentication, however all works if I use my Windows Authentication)

I cannot identify needed permission.

Addition background:
server: MS SQL Server Developer Edition x64 2008 R2
OS: Windows 2008 R2 Enterprise edition x64

The sql user used to get the report is the owner of the database


Cheers, Damjan
0
Comment
Question by:DamjanDemsar
  • 4
  • 2
6 Comments
 
LVL 11

Accepted Solution

by:
Louis01 earned 2000 total points
ID: 39262108
Login to http://localhost/Reports
Give permission to reports there
0
 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39262130
Hmm, progress

It seems that I do not have permissions (however my username is both OS and SQL server administrator)

what permissions do I need, or how to check who has them?
0
 
LVL 11

Expert Comment

by:Louis01
ID: 39262169
Try this link - it explains about Report Server Permissions
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39264993
Hmm, I managed t to  connect. Thanks about that.

Am I reading it right, that I cannot add sql authentication user into reporting services, or would that be basic authentication (just make sure username and password are the same)?

Cheers, Damjan
0
 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39267635
OK, I just needed to find which user had initial permitions. It had to be the built in administrator account (no other local administrators worked).


Thanks for help.
0
 
LVL 5

Author Comment

by:DamjanDemsar
ID: 39280566
Hmm... just addional info....

It seems that if you try to run standard reports from MS SQL management studio then report server permissions do not apply. The connected user needs permissions on SQL server to VIEW ALL DEFINITION and VIEW SERVER STATUS

so open new query

use master;
GRANT VIEW ALL DEFINITION to username
GRANT VIEW SERVER STATUS to username
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

886 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