cn = new SqlConnection(); cn.ConnectionString = Data Source=(local); Initial Catalog=XXX_amlak; User ID=sa; password=XXX; cn.Open();
SQLException was unhandled 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:Named Pipes Provider,error:40-could not open a connection to SQL Server)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)