[Sql2000 database] Named Pipes Provider error 40

Source: Internet
Author: User

Problem description:An error has occurred while establishing a connection to the server. when connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40-cocould not open a connection to SQL Server)

Solution: if the network and database are okay, you can use winform to connect to them. One possible reason is that Sqlserver2000 has not been patched with SP4. You can use the following SQL command to View Details:

Select serverproperty ('productlevel ')

Installing the sp4 patch is a simple step, but there is a small problem here. Sometimes, when installing sp4, you cannot use an SQL account but use a windows Local Account. Therefore, after sp4 is installed, the database cannot enter. The following describes the solution.

1. If the database cannot be opened due to account issues in the Enterprise Manager, delete it and re-register a windows Local Account.

2. Select database instance-> properties-> security tag-> select SQL Server and Windows

3. Select database instance> edit SQL Server Registration attributes> select use SQL Server identity verification to enter the login name and password.

After completing the above steps, you can use the SQL Server account to log on again.

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.