A network-related or instance-specific error occured 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.
System.Data.SqlClient.SqlException (0x80131904)
ทั้งๆที่ใช้ ดาต้าเบส ภายในเครื่อง ไม่ได้ใช้แบบติดกับ server แล้วน่ะครับ
Public conStr As String = "Data Source=.\SQLEXPRESS;" & _
"AttachDbFilename=D:\Database\Joborder.mdf;" & _
"Integrated Security=True;User Instance=True"
เพราะผมไป attach database ชื่อเดียวกันคือ Joborder.mdf หรือเปล่าครับ?
โปรแกรมใช้การไม่ได้ หลังจาก attach file เข้า database ครับ
System.Data.SqlClient.SqlException (0x80131904)
ทั้งๆที่ใช้ ดาต้าเบส ภายในเครื่อง ไม่ได้ใช้แบบติดกับ server แล้วน่ะครับ
Public conStr As String = "Data Source=.\SQLEXPRESS;" & _
"AttachDbFilename=D:\Database\Joborder.mdf;" & _
"Integrated Security=True;User Instance=True"
เพราะผมไป attach database ชื่อเดียวกันคือ Joborder.mdf หรือเปล่าครับ?