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


Select premission was denied on Object


Select premission was denied on Object

Author
Message
SirFalcon60
SirFalcon60
SSC Journeyman
SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)

Group: General Forum Members
Points: 88 Visits: 174
OS: windows Server 2003 R2
RDBMS: SQL Server 2005 SP3 CU5
Ok Im very new to Report Server So please bare with me if this seems unworthy of your support.

Issue: An Error occurred during local reporting processing
An Error occurred during report processing
Query execution failed for data set 'AuditReports'
The SELECT permissions was denied on the Object 'Is a tabled valued function' database 'dbname' schema 'dbo'.

Can some one please point me in the right direction to get this corrected.

w00t
Luke L
Luke L
SSCarpal Tunnel
SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)

Group: General Forum Members
Points: 4819 Visits: 6136
Are you certain that whatever login you are using in your dataset has the appropriate permissions (Select) to read data from your TVF? Make certain it's not in the db_DenyDatareader role. Have you tried to connect using SSMS and executing the query from the same set of credentials that you are using in your report?

-Luke.

To help us help you read this

For better help with performance problems please read this
Steve Jones
Steve Jones
SSC Guru
SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)SSC Guru (81K reputation)

Group: Administrators
Points: 81959 Visits: 19217
Luke has great advice. This isn't a Reporting Services issue, it's a permissions issue in the database that holds this data.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
SirFalcon60
SirFalcon60
SSC Journeyman
SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)SSC Journeyman (88 reputation)

Group: General Forum Members
Points: 88 Visits: 174
Gentlemen,
Yes the users as premission. I set it up in this fashion.
DatabaseRole: EXFunctionRole
Iside that role the secrables associate to a table-valued functions
Grant Alter
Grant Control
Grant References
Grant Select
Grant View Defention

Then the role as been granted to a domain user

Regards
SirFalcon60
Luke L
Luke L
SSCarpal Tunnel
SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)SSCarpal Tunnel (4.8K reputation)

Group: General Forum Members
Points: 4819 Visits: 6136
Have you logged into the database with SSMS as that domain user? Were you able to log in successfully?

Have you tried to execute your dataset including using that TVF while logged in as that user? Were you able to do this successfully?

-Luke.

To help us help you read this

For better help with performance problems please read this
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