积极答复者
新建数据库连接语句中“Integrated Security=True;”是什么意思?

问题
-
SqlConnection conn = new SqlConnection("Server=.;Integrated Security=True;database=cwq"); SqlCommand cmd = new SqlCommand("insert into xx(username,password)values('" +textBox1.Text+ "','" + textBox2.Text + "')", conn);
Integrated Security=True;
这一句是什么意思,新手求教了_(:3」∠)_- 已移动 Sheng Jiang 蒋晟 2013年6月21日 19:47
答案
-
陈建文:
建议你使用SqlParameter而不是所谓的单引号字符串,这样既不方便写或者识别,还容易遭到SQL攻击。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report- 已标记为答案 陈建文 2013年6月20日 7:58
全部回复
-
陈建文:
建议你使用SqlParameter而不是所谓的单引号字符串,这样既不方便写或者识别,还容易遭到SQL攻击。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report- 已标记为答案 陈建文 2013年6月20日 7:58