▼ กำลังโหลดข้อมูล... ▼
แสดงความคิดเห็น
คุณสามารถแสดงความคิดเห็นกับกระทู้นี้ได้ด้วยการเข้าสู่ระบบ
กระทู้ที่คุณอาจสนใจ
อ่านกระทู้อื่นที่พูดคุยเกี่ยวกับ
ซอฟต์แวร์
การพัฒนาซอฟต์แวร์
โปรดศึกษาและยอมรับนโยบายข้อมูลส่วนบุคคลก่อนเริ่มใช้งาน อ่านเพิ่มเติมได้ที่นี่
connect sql server แล้ว error รบกวนผู้รู้ครับ
http://www.thaicreate.com/dotnet/forum/026810.html
protected void Page_Load(object sender, EventArgs e)
{
String strConnString;
strConnString = "Server=localhost;UID=sa;password=;database=DB_TEST;Max Pool Size=400;Connect Timeout=600;";
/* strConnString = "Server=localhost;Uid=sa;PASSWORD=;database=mydatabase;Max Pool Size=400;Connect Timeout=600;";*/
objConn = new SqlConnection(strConnString);
objConn.Open(); ------error บรรทัดนี้ครับ
if(objConn.State == ConnectionState.Open)
{
this.TextBox1.Text = "SQL Server Connected";
}
else
{
this.TextBox1.Text = "SQL Server Connect Failed";
}
}
void Page_UnLoad()
{
objConn.Close();
objConn = null;
}
ไม่รู้ว่าต้องเซ็ทตรงไหนเพิ่มหรือผมทำผิดตรงไหน รบกวนด้วยครับ