ปัญหาการ Connect Database
Error:26
"a network-related or instance-specific error ocurred 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:sql network interfaces,error:26-Error locating server/Instance specified) (Microsoft sql server)"
Error ที่เกิดขึ้น เกิดจาก Service ของ sql server ยังไม่ได้ start
Solution 1
Windows + R --> พิมพ์ services.msc --> คลิกเลือก SQL Server > คลิก start
แค่นี้ก็สามารถปัญหาดังกล่าวได้แล้ว
ERROR:40
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)
ตัว Connect DB ของเราอาจไม่ถูกต้อง
Solution 2
แก้ไข Script Connect DB
Ex...Click