for (int i = 0; i <= dr.RecordsAffected - 1; i++) {
texto[i] = dr(0);
}
one more thing i would like to add is to use sql parameters to prevent sql injections :
for example:
cmd = new SqlCommand("Select Texto FROM Notes WHERE ID_users=@Iduser, conn);
SqlParameter param = new SqlParameter();
param.ParameterName = "@Iduser";
param.Value = id_user.ToString();
param.Size = 15;
param.SqlDbType = System.Data.SqlDbType.VarChar;
cmd.Parameters.Add(param);
Cheers!