Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

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

I restored a backup which i was not created to a new database and if i connect above said issue is coming , if i generate script from restored DB and running without data in another new database and connecting to the same is working .. can you plz tell what will be the exact problem and i found one database level user is there as below in the script.

CREATE USER [appointment_bee] WITHOUT LOGIN WITH DEFAULT_SCHEMA=[dbo]

kindly let me know whats the problem ..
Posted
Comments
Kornfeld Eliyahu Peter 22-Sep-14 8:03am    
When you restore a DB it's not only data, but also definitions (like users and rights)...

1 solution

Well I have an easy solution for your question.Follow the steps:
1. Go to SQL Server Configuration manager
2. SQL Server Network Configuration : 2.a. Protocol for MSSQLSERVER
3. In the right pane split page you will have to disable VIA as follows a.Shared Memory-- Enable b.Named Pipes ---Enable c.TCP/IP --------Enable d.VIA -----------Disable .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900