The solution to bat file running errors in Window7 does not know what optimization has been done in the computer, or what software has been installed, which has been used to open the sqlserver Service
When the bat file is running, the service is not started properly. Then run cmd and enter the command. net start mssqlserver. The result is: access is denied due to system error 5.
This should be because you have no access permission, and then try to run cmd as an administrator, and then execute the above command.
Then, run the bat file as the administrator. Www.2cto.com, however, it is too tedious to right-click and choose to run as an administrator. I came up with a solution:
Create a shortcut for the bat file, edit the attributes, and check the operation as an administrator,
In this way, you can directly open the shortcut each time. Author's dream