โปรแกรมใช้การไม่ได้ หลังจาก attach file เข้า database ครับ

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 หรือเปล่าครับ?
แสดงความคิดเห็น
โปรดศึกษาและยอมรับนโยบายข้อมูลส่วนบุคคลก่อนเริ่มใช้งาน อ่านเพิ่มเติมได้ที่นี่