command.CommandText = "INSERT INTO mytable ( blob ) VALUES( @blob ) ";That one doesn't
command.CommandText = "INSERT INTO mytable ( blob ) VALUES( ? ) ";The only reason I used the former syntax initially was just seeing an example on the Internet.
>> OleDbParameter pField1 = new OleDbParameter("@blob", OleDbType.BSTR); >> while (oSQLReader.Read()) >>{ >> >> >> pField1.Value = oSQLReader.GetValue(column1); >> >> command.CommandText = "INSERT INTO mytable ( blob ) VALUES( @blob ) "; >> >> command.Parameters.Add(pField1); >> >> int effected = command.ExecuteNonQuery(); >>} >>>>