Error while trying to connect to database

Asked

Viewed 282 times

2

I’m studying about C# and Asp.net and "trying" to draft a registration, amendment and exclusion project, following some videos lessons I found on the net. The problem is when I connect the database created earlier the application does not find it and this error appears on the screen.

Erro Sql

The error says:

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

How to solve this problem?

  • GNW-PC is your PC or is a networked PC?

  • Appears some database to select in the field "Select or enter a database name:"

  • The problem must be in your Connection string. Where did you define it? In web.config?

2 answers

1

1

In place of GNW-PC place .\SqlExpress

Browser other questions tagged

You are not signed in. Login or sign up in order to post.