asp.net数据库用户名和密码检查

时间:2017-01-07 14:08:53

标签: asp.net sql-server database

我已添加此代码并获取计数。

  string qry2 = "select count(*) from RegCustomer where username='"+TextBoxUN.Text+"' and password='"+TextBoxPW.Text+"'";

存储在数据库中的密码是 - apple

如果我们用这个pw-apple

键入正确的用户名,它将返回1作为计数

但是当输入密码时这样 - Apple
它也将返回1.它不会检查密码是否为小写。

我在SQL服务器中使用了varchar(50)作为密码字段。

0 个答案:

没有答案
相关问题