SqlDataAdapter my_query = new SqlDataAdapter("SELECT * FROM accounts WHERE acc_user= @user AND acc_password=@pass", the_connection); SqlParameter userParam = my_query.Select_Command.Parameters.Add( "@user",SqlDb.VarChar,20); userParam.Value=user; SqlParameter passwordParam = my_query.Select_Command.Parameters.Add( "@",SqlDb.VarChar,20); passwordParam.Value=password; |