Solved

User does not have permission to perform this action.

Posted on 2009-05-17
7
2,544 Views
Last Modified: 2012-05-07
I have SQLExpress 2008 installed on my local machine running XP Pro SP 3.  I am loged in as Administrator. I am able to work with Visual Studio no problem. I am able to connect to the local instance of SQLExpress with SQL Managemant Studio but that is all that I could do. Anything else I try to do I get the error "User does not have permission to perform this action." Could anyone help me out on this

EXEC sp_grantlogin '(local)\[Administrator]'
Msg 15247, Level 16, State 1, Procedure sp_grantlogin, Line 13
User does not have permission to perform this action.

Thanks
0
Comment
Question by:ruffone
  • 3
  • 3
7 Comments
 
LVL 6

Expert Comment

by:bull_rider
ID: 24407256
You are connecting with what user credentials to SQL Expres Management Studio? Try connecting to it through windows authentication and then try.
0
 
LVL 6

Accepted Solution

by:
bull_rider earned 250 total points
ID: 24407268
Can you try this in osql?

C:\>osql -E
1> use dbname
2> exec sp_grantdbaccess loginname
3> go

This you have to do through the command prompt. And replace loginname with the user name u r logged in and replace dbname with your database name.

Hope it helps.
0
 
LVL 4

Author Comment

by:ruffone
ID: 24407402
thanks for your response bull_rider
I am loged in as the local administrator of the maching. This is what have me so puzzled. This is literally what I type in and what I got back. I am loged into the machine "HYMAN" as "Administrator". Administrator is the name of the administrator account. It is the only account on the system. I use it to do everything on the system. I am very pissed that SQLExpress cannot see that.

C:\ >SQLCMD.exe -S HYMAN\SQLExpress -E
1>EXEC sp_grantlogin '[HYMAN]\[Administrator]'
2>GO
Msg 15247, Level 16, State 1, Server HYMAN\SQLEXPRESS, Procedure sp_grantlogin,
Line 13
User does not have permission to perform this action.
 
 
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 4

Author Comment

by:ruffone
ID: 24407432
when I try to type in the command you send I get this
C:\>osql -E
[SQL Server Native Client 10.0]Named Pipes Provider: Could not open a
connection to SQL Server [2].
[SQL Server Native Client 10.0]Login timeout expired
[SQL Server Native Client 10.0]A network-related or instance-specific error
has occurred while establishing a connection to SQL Server. Server is not
found or not accessible. Check if instance name is correct and if SQL Server
is configured to allow remote connections. For more information see SQL Server
Books Online.
0
 
LVL 9

Assisted Solution

by:cdaly33
cdaly33 earned 250 total points
ID: 24407551
0
 
LVL 6

Expert Comment

by:bull_rider
ID: 24408630
Then you can do one more thing, can you enable the Named Pipes in Sql Server surface area configuration and allow the remote connections as well there?
0
 
LVL 4

Author Comment

by:ruffone
ID: 24408886
I do not understand what is going on why I can't login with Management Studio but I found that I could work quite successfully in Visual Studio using the database diagram. All I ever wanted was to be able to do my work. So I am happy. Thank you guys for responding when I was pulling my hair out
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

18 Experts available now in Live!

Get 1:1 Help Now