Click here to Skip to main content
15,921,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am try to add database .mdf file in VS2011 then this error occur and he can't add .mdf file

" A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) "

if i open any other project in the existence database the same error occur.

anybody tell me.
Posted
Comments
[no name] 5-Aug-12 17:23pm    
And? Is your SQL server connected to a network? Has it been configured? Is it actually running? Can you connect with SSMS?
raajaakhan 6-Aug-12 13:43pm    
i'm creating a windows form application.
[no name] 6-Aug-12 14:01pm    
Okay good... what does that have to do with your error message?

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