Hatan çok büyük çaplı bir hata. Şu siteye bakabilirsin.
Looking a solution to resolve could not open a connection to SQL Server error 40? If yes then read this blog to resolve this issue easily.
Ayrıca Visual Studio sürümün de eski gibi hangi sürüm acaba? Ondan dolayı da olabileceğini düşünüyorum.