Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

SQL 2005 View - Results showing NULL to some users

Posted on 2015-01-07
3
80 Views
Last Modified: 2015-02-26
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
0
Comment
Question by:Steven O'Neill
3 Comments
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 350 total points
ID: 40535975
Likely a permissions issue.  Do those users not have access to that table or, less likely, that column(s)?
0
 
LVL 32

Assisted Solution

by:bhess1
bhess1 earned 100 total points
ID: 40536584
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.
0
 
LVL 34

Assisted Solution

by:Mike Eghtebas
Mike Eghtebas earned 50 total points
ID: 40539647
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.

Mike
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

856 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