sql数据库查询的如果换成access应该如何写?
//登陆验证public bool Validate(string userName, string password)
{
SqlParameter[] sqlParameter = {
new SqlParameter("@memberName",SqlDbType.NVarChar,8),
new SqlParameter("@memberPass",SqlDbType.NVarChar,20)
}; sqlParameter[0].Value = userName;
sqlParameter[1].Value = password;
SqlDataReader reader = SqlHelper.ExecuteReader(SqlHelper.ConnectionStringLocalTransaction, CommandType.StoredProcedure, "Member_Validate", sqlParameter);
if (reader.HasRows)
{
return true;
}
else
{
return false;
}
}