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

Very simple solution

use (local)\InstanceName that's it. it worked for me.