sp error

Posted on 2013-09-11
Medium Priority
Last Modified: 2013-09-16

when i am using to execute following command from sqlserver 2008

EXEC xp_servicecontrol N'STOP',N'AnalysisService'

I am gettting following error

StartService() returned error 5, 'Access is denied.'

I am using  abc user to connect this database , it has all the permission but

still i am getting the error,

could you please guide me
Question by:praveen1981

Assisted Solution

jpgobert earned 501 total points
ID: 39482347
Here's the Microsoft MSDN article on how permissions work with this:  http://msdn.microsoft.com/en-us/library/ms685981.aspx

Only LocalSystem or Administrator accounts have the correct permissions to start / stop a service according to that MSDN link.
LVL 11

Assisted Solution

Louis01 earned 498 total points
ID: 39482360
Does abc have sysadmin role assigned?
LVL 40

Accepted Solution

Jacques Bourgeois (James Burger) earned 501 total points
ID: 39484546
If you are under Windows Vista or more, running under an administrator account is not sufficient, because the applications do not have administrator rights by default, even when ran by a administrator. You need to start the application with the Run as Administrator option set.

This can be done by going in the advanced properties of either the application or a shortcut that is used to start it.

If you want to set at compile time, go into the project Properties window, Application tab, View Windows Settings button, and change "asInvoker" toward the bottom for "requireAdministrator"

Author Closing Comment

ID: 39495490

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.

627 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