Solved

SQL server permissions ?

Posted on 2008-10-27
2
200 Views
Last Modified: 2012-05-05
I found a script that let me look at permissons on the server. There are two sets of permissions on the database for the user account.  One set gives all the object_or_coumn and the other set for the same User ID give a NULL in that column.  Could this be causing a conflict as to permissons for this user ID or is the Null Value suppose to be here.  This ID cannot logon to the database.  Get error.

xxx\IUSR_xx      WINDOWS_USER  OBJECT_OR_COLUMN  QSASafetyInfo              ALTER      GRANT
xxx\IUSR_xx      WINDOWS_USER OBJECT_OR_COLUMN   QSASafetyInfo      CONTROL      GRANT
xxx\IUSR_xxxWINDOWS_USER OBJECT_OR_COLUMN QSASafetyInfo      DELETE      GRANT
xxx\IUSR_xxxWINDOWS_USER OBJECT_OR_COLUMN QSASafetyInfo      INSERT      GRANT
xxx\IUSR_xxx WINDOWS_USER OBJECT_OR_COLUMN QSASafetyInfo      SELECT      GRANT
Here is the second set that shows up.

xxx\IUSR_xxxWINDOWS_USER      DATABASE      NULL      AUTHENTICATE      GRANT
xxx\IUSR_xxxWINDOWS_USER      DATABASE      NULL      CONTROL      GRANT
xxx\IUSR_xxxWINDOWS_USER      DATABASE      NULL      CONNECT      GRANT
xxx\IUSR_xxxWINDOWS_USER      DATABASE      NULL      DELETE      GRANT
xxx\IUSR_xxxWINDOWS_USER      DATABASE      NULL      EXECUTE      GRANT
xxx\IUSR_xxxWINDOWS_USER      DATABASE      NULL      INSERT      GRANT
xxx\IUSR_xxxWINDOWS_USER      DATABASE      NULL      SELECT      GRANT
xxx\IUSR_xxxWINDOWS_USER      DATABASE      NULL      UPDATE      GRANT
xxx\IUSR_xxxWINDOWS_USER      OBJECT_OR_COLUMN      QSASafetyInfo UPDATE      GRANT
0
Comment
Question by:kdschool
2 Comments
 
LVL 13

Accepted Solution

by:
devsolns earned 500 total points
ID: 22814254
More than likely this issue is due to an orphaned user in SQL Server.  This can be caused by a restore of a database, etc.  Run this command and see if the login you speak of is orphaned:

sp_change_users_login 'report'


Read more about this from here:
http://support.microsoft.com/kb/274188
0
 

Author Comment

by:kdschool
ID: 22814506
I ran the command and the report window and it makes two columns. UserName and UserSID and  is blank but Messages says executed correctly.  
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

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

864 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now