• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 124
  • Last Modified:

SQL 2005 View - Results showing NULL to some users

Hi guys

I'm running a SQL View and the results are coming back as expected for me (as the dba) but not for some of my users.

The query in the View is pulling data from multiple tables. I'm puling back 3-4 fields from the one table and 3 of them display the data as it should but the 4th one is displaying NULL (for me it displays the data as expected).

Any idea what I can check?

Thanx in advance
Steven O'Neill
Steven O'Neill
3 Solutions
Scott PletcherSenior DBACommented:
Likely a permissions issue.  Do those users not have access to that table or, less likely, that column(s)?
Brendt HessSenior DBACommented:
If all four of those fields are from one table (and you should verify that in the query - if the field is used in a JOIN for example, the actual output data could be from the joined table), then the most likely culprit would be column level permissions, which are fairly uncommon but not unheard of. Check for permission restrictions on both the source table and the view itself.

You could also use the "Execute As" option to see how that code works in their logins, with their permission set. Running it in enterprise manager that way would let you see any warnings or other messages that might not be output by the view itself.
Mike EghtebasDatabase and Application DeveloperCommented:
One possibility is that your table (with missing data) has a different schema and the other users do not have permission to view it. This item is covered by the posts before mine in a broad manner.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now