Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

permissions of SQLServerMSSQLUser$ComputerName$MSSQLSERVER

Posted on 2010-09-13
9
Medium Priority
?
2,178 Views
Last Modified: 2012-05-10
is there a tSQL code you could check what are the permissions bestowed to the above group.

thanks
0
Comment
Question by:anushahanna
[X]
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
  • 5
  • 4
9 Comments
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 33672848
What's that?
An AD group or AD user?
Wich SQL Server version are you using?
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33673093
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33673098
user group created by installation?
0
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 33673330
Now I see. Isn't really a user name but a variable :)
You have in that article what kind of permissions is needed in AD.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33673589
OK.

But those are only Default permissions, right? it might have changed over the years, and how do you check where its levels are now?

Why do you say it is a variable? Even it is a variable, it works with xp_logininfo, which is supposed to return information about Windows users and Windows groups.
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 33680644
As far I know about Microsoft articles they are always up to date.
Variable it's the computer name.  :)

Anyway, that user is really a group that is created locally in the server and not in AD.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33682848
Thanks VMontalvao. My variable is COMNTR333.

I confirmed the following is in syslogins.
'COMNTR333\SQLServer2005MSSQLUser$COMNTR333$MSSQLSERVER'

then i created an user in tblTracker databases
use tblTracker
create user [COMNTR333\SQLServer2005MSSQLUser$COMNTR333$MSSQLSERVER] for login [COMNTR333\SQLServer2005MSSQLUser$COMNTR333$MSSQLSERVER]

then i tried to see its current permissions

USE tblTracker  
EXECUTE AS USER = 'COMNTR333\SQLServer2005MSSQLUser$COMNTR333$MSSQLSERVER';
SELECT * FROM fn_my_permissions(NULL, NULL)
REVERT;

but it gives error:
Cannot execute as the database principal because the principal "COMNTR333\SQLServer2005MSSQLUser$COMNTR333$MSSQLSERVER" does not exist, this type of principal cannot be impersonated, or you do not have permission.

if we cannot impersonate, is there any options to check its permissions?

thanks
0
 
LVL 52

Accepted Solution

by:
Vitor Montalvão earned 2000 total points
ID: 33683163
Isn't a user but a group. Go to Manage User options in Computer Management and you'll see that group there. Should be only a member in that group. That member should be the user that owns SQL Server service.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33772132
Thanks VMontalvao.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

721 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