M
Michelle
Is there any performance difference between doing the following with oracle
and oledb:
cmd.CommandText = "insert into mytable (val1, val2, val3) values ('" +
checkforquotes(myval1) + "', '" + checkforquotes(myval2) + "', '" +
checkforquotes(myval3) + "')";
and doing
cmd.CommandText = "insert into mytable (val1, val2, val3) values (?, ?, ?)";
cmd.Parameters.Add("val1", val1);
cmd.Parameters.Add("val2", val2);
cmd.Parameters.Add("val3", val3);
Thanks,
Michelle
and oledb:
cmd.CommandText = "insert into mytable (val1, val2, val3) values ('" +
checkforquotes(myval1) + "', '" + checkforquotes(myval2) + "', '" +
checkforquotes(myval3) + "')";
and doing
cmd.CommandText = "insert into mytable (val1, val2, val3) values (?, ?, ?)";
cmd.Parameters.Add("val1", val1);
cmd.Parameters.Add("val2", val2);
cmd.Parameters.Add("val3", val3);
Thanks,
Michelle