|
|
|
ASP.Net ต้องการบันทึกภาษาจีนลงใน Ms SQL Server 2008 แต่ไม่ได้ซักที |
|
|
|
|
|
|
|
Code (VBScript)
SqlAdd &= "Values('" & id.Text & "','"
SqlAdd &= N'one_item.Text' & "','"
SqlAdd &= N'two_item.Text' & "','"
SqlAdd &= N'three_item.Text' & "')"
แก้เป็น
Code (VBScript)
SqlAdd &= "Values( '" & id.Text & "'"
SqlAdd &= ", n'" & one_item.Text & "'"
SqlAdd &= ", n'" & two_item.Text & "'"
SqlAdd &= ", n'" & three_item.Text & "' )"
|
|
|
|
|
Date :
2015-01-23 13:58:25 |
By :
Chaidhanan |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2015-01-23 14:21:39 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
จัดไปครับ
|
|
|
|
|
Date :
2015-01-23 14:42:57 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
N คืออะไรอะครับ
|
|
|
|
|
Date :
2015-01-27 16:14:35 |
By :
Gambler |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ผมเขียนเป็น c#
อย่างงี้อะครับ
Code (C#)
sql = "insert into mcs_admin (admin_name,admin_surname,admin_tel,admin_mail,admin_user,admin_pass) values(N'" + admin_name.Text + "','" + admin_surname.Text + "','" + admin_tel.Text + "','" + admin_mail.Text + "','" + admin_user.Text + "','"+Class_database.MD5HashCryptography(admin_pass.Text)+"')";
|
|
|
|
|
Date :
2015-01-27 16:16:52 |
By :
Gambler |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณมากครับ
|
|
|
|
|
Date :
2015-01-29 16:33:51 |
By :
Gambler |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|