Khi tôi đi tới cửa sổ 'Thêm mục mới' trong Visual Studio 2005 và thử thêm một Cơ sở dữ liệu SQL mà nó treo một chút rồi đưa ra lỗi sau:Tạo cơ sở dữ liệu SQL và thêm vào dự án bằng Visual Studio
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: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)
Tôi có thể sử dụng SQL Server Management Studio để kết nối với localhost (trường hợp mặc định) tốt, nhưng Visual Studio phải cố gắng kết nối với một cá thể khác (không chạy nữa). Làm cách nào để thay đổi trường hợp nào nó cố gắng kết nối để thêm và sử dụng cơ sở dữ liệu?
Tôi đang chạy SQL Server 2005 Express –
Max: Bạn có tích cực là dịch vụ đang chạy không? – TheTXI
Tôi có thể kết nối bằng SQL Server Management Studio –