Source: http://blog.csdn.net/u012586848/article/details/46860839
1. Net start command
The net start command is used to start the service in the form of net start [service name] (the corresponding “net stop [service name]” is the command to close the service)
2. Open the default instance service of sqlserver
[win + R] shortcut – & gt; CMD – & gt; net start MSSqlServer
Prompt error “system error 5 occurred”, the screenshot is as follows:
3. Error analysis
The reason for this error is that there is a difference between the administrator and non administrator permissions in win7/win8 command prompt, and the net stat command can only be run under the administrator permission.
4. Solutions
1) Open the command prompt with administrator’s permission: [start] — & gt; search for “CMD” — & gt; right click “run as administrator”, or use the shortcut key [win + X + a]
2) Enter “net start MSSqlServer” successfully. The screenshot is as follows:
note appended:
The above method can solve the “system error 5 access denied” error of the “net start” command, but it may still not be able to open the corresponding service, prompting “error 1058”, as shown in the figure below:
As shown in the error prompt in the figure, the reason may be that MS SQL server has been disabled or its associated device has not been started. For MSSqlServer service, find the “MSSqlServer” service in control panel — & gt; management tools — & gt; services, double-click to open properties, and select the dependency tab to see that the service has “no dependency”. Therefore, the reason of “other associated devices are not started” is excluded, as shown in the following figure
Switch the properties window to the General tab, and you can see that the service status is “stopped” and the start type is “disabled”. Change the start type to one of the other three items besides “disabled” – & gt; [OK].
Reference source:
one http://answers.microsoft.com/zh-hans/windows/forum/windows8_ 1-performance/%E8%BF%90%E8%A1%8Cnet-start/bec244e5-6385-4950-adc8-0d004905e41a?auth=1
two http://www.2cto.com/database/201304/200600.html
Read More:
- net start mysql System error 2 has occurred. The system cannot find the file specified.
- Net start mongodb failed to start: system error 5 has occurred. Access is denied
- Solve net start mysql, start MySQL service, prompt system error 5. Access denied.
- Windows command to start MySQL “system error 5”
- System error 5 occurred in net start mysql. Access denied)
- Python – [encoding] in Python os.system Solution to Chinese garbled code when calling CMD command
- Solution to prompt “system group policy forbids installation of this device” in win10 system
- MySQL uses net start MySQL startup prompt (failed to start, the service did not report any error)
- Net prompt is not an internal or external command
- Computer CMD window net view command 6118 error resolution
- Solution / error of. Net framework 4.0 installation failure HResult 0xc8000222 solution
- Error: JMeter monitors Linux system performance java.net.ConnectException : Connection timed out: connect
- Solution to command line option syntax error. Type command /? For help
- fiddler dns lookup for failed System.Net.Sockets The name of the. Socketexception request
- Linux basic command execution error: the solution of command not found
- Command prompt window prompt system error 5, access denied?
- Win7 and Ubuntu dual system, start error: no such partition grub rescue
- Exception on start hive: caused by: java.net.noroutetohostexception: no route to host
- JMeter: java.net.bindexception: address already in use: connect solution
- Centos7 executes the command service mysqld start and prompts Failed to start mysqld.service: Unit mysqld.service not loaded