How do I fix the error 'Named Pipes Provider, error 40 - Could not open a connection to' SQL Server'?

前端 未结 30 3097
借酒劲吻你
借酒劲吻你 2020-11-22 08:27

I can\'t seem to connect to my database from a site. I get this error:

Named Pipes Provider, error: 40 - Could not open a connection to SQL Server

30条回答
  •  庸人自扰
    2020-11-22 09:13

    Try the following steps:

    1. Open Services window (open "run box" and type services.msc).

    2. Looking for SQL services (with SQL prefix).

    3. Start them (if cannot start. Goto step 4).

    4. Right_click to each service -> Properties -> Change to tab "Log on"-> choise log on as "Local ..." -> 0K. Then start SQL services again.

    Try Open SQL and connect database.

提交回复
热议问题