Solved

sp_helprotect on windows logins

Posted on 2010-08-18
10
740 Views
Last Modified: 2012-05-10
when i run the following,
EXEC sp_helprotect NULL, 'DOMAIN\USERNAME'
i get
Msg 15330, Level 11, State 1, Procedure sp_helprotect, Line 291
There are no matching rows on which to report.

even though the windows login is registered as a login on the instance.

will this sp work for windows logins?

thanks
0
Comment
Question by:anushahanna
  • 5
  • 5
10 Comments
 
LVL 15

Expert Comment

by:David L. Hansen
ID: 33465213
Can you post the exact text of your query please.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33465481
use master
EXEC sp_helprotect NULL, 'SRBSV\jimw'
0
 
LVL 15

Expert Comment

by:David L. Hansen
ID: 33465602
Try:
use master
EXEC sp_helprotect NULL, 'jimw'
0
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.

 
LVL 6

Author Comment

by:anushahanna
ID: 33465653
same error.
0
 
LVL 15

Expert Comment

by:David L. Hansen
ID: 33465769
In the following link you can see an example identical to yours (ex. B): http://msdn.microsoft.com/en-us/library/ms190310.aspx

Given that, I'd say that the username being used 'jimw' must not be a valid username for 'master'.  Is that your user name?  If not, try the same command using yours instead.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33466382
i tried a couple of logins, all same issue.

jimw is valid used in user database.
we use master because that is where the sp is..
0
 
LVL 15

Expert Comment

by:David L. Hansen
ID: 33466472
Did you verify that 'jimw' has actually performed queries sucessfully on master?  I know it is a pretty obvious question...just want to be thorough.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33468850
OK. JimW is a valid use in Tracker database. I do not see him as an user in MASTER, though. is that the problem? it is looking in the wrong place?
0
 
LVL 15

Accepted Solution

by:
David L. Hansen earned 500 total points
ID: 33468877
Yes.  That is a problem.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33477188
Thanks for your help. that was it.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
string fuctions 4 25
What's wrong with this T-SQL Foreign Key? 7 43
Return 0 on SQL count 24 28
Can > be used for a Text field 6 39
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

776 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