After modifying the server name, SQL Server's configuration processing

Source: Internet
Author: User

1. Confirm that the SQL DB instance server name and server name are the same

  1. Use master

  2. Go

  3. Select @ @servername

  4. Select serverproperty (' servername ')

  5. ------

  6. IF serverproperty (' servername ') <>@ @servername

  7. BEGIN

  8. DECLARE @server SYSNAME

  9. SET @[email protected] @servername

  10. EXEC sp_dropserver @[email protected]

  11. SET @server =cast(serverproperty (' servername ') as SYSNAME)

  12. EXEC sp_addserver @[email protected],@Local=' local '

  13. END

  14. ELSE

  15. PRINT ' instance name is consistent with hostname without modification! '

See article: http://blog.csdn.net/leamonjxl/article/details/6674698

2, encountered an error

Cannot connect to WMI provider. Permission or the server is unreachable. Note This can only be manage SQL Server 2005 servers with SQL Server Configuration Manager.
Invalid class [0x80041010]

Workaround:

Run the cmd command with Administrator C:\Program Files (x86) \microsoft SQL Server\shared>mofcomp "C:\Program Files\Microsoft SQL Server\ Shared\sqlmgmproviderxpsp2up.mof "

See article: Http://wenku.baidu.com/link?url=2ULpQX9ldyFUd1_PbmrBGEAwp99SG9IL40A27CoVbDhlCOXskJ9FYwX_ Og2kbabuevrkijyjf4jzvznvxayjqidpiry-bceticzjyz8liyk

This article is from the "Fishvsfrog" blog, make sure to keep this source http://fishvsfrog.blog.51cto.com/388027/1435266

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.