Category Archives: ASP.Net

Unable to Connect to Localhost SQL Server Express Instance

Problem Connecting programmatically or by using osql failed with the following, generic error: error: 40 – Could not open a connection to SQL Server My programmatic attempt looked like this: string cs = “Data Source=localhost;” + “Trusted_Connection=true;” + “Initial Catalog=dbname;”; … Continue reading

Posted in ASP.Net, Technology | Tagged , , , , | Leave a comment