Sysservers cannot find the server. Execute sp_addmediaserver to add the server to sysserver.

Source: Internet
Author: User
Tags mssqlserver

The solution is as follows:

SELECT @ SERVERNAME

Use this command to check whether the user name has not been modified.

Then execute the following statement:
Copy codeThe Code is as follows:
EXEC sp_dropserver ''original server name''
EXEC sp_addserver
@ Server = ''current server name '',
@ Local = ''local''


After the execution is successful, run the command again: SELECT @ SERVERNAME. You can see that the value has not changed, or the original value. Don't worry. In this case, you only need to restart the SQL service.

Start-run-services. msc, open the service window, find SQL Server (MSSQLSERVER) to stop, and then start.

Note: The SQL Server (MSSQLSERVER) service is dependent on the SQL Server Agent (MSSQLSERVER). When the preceding service is disabled, the following services are also disabled, so do not forget it at startup.

OK. After the startup, SELECT @ SERVERNAME again. We can see that the value has changed to our current name. Try again and you can connect to it.

I use sql2005. Other versions do not know whether this method is feasible.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.