G
Guest
hey all,
could someone please show me how to store a null value in my database
record's varbinary field using a paramerterized query?
The following doesn't work:
SqlParameter prm = new SqlParameter("@BLOBData",
SqlDbType.VarBinary, bytBLOBData.Length, ParameterDirection.Input, false,
0, 0, null, DataRowVersion.Current,
bytBLOBData);
prm.Value = DBNull.Value;
cmd.Parameters.Add(prm);
thanks,
rodchar
could someone please show me how to store a null value in my database
record's varbinary field using a paramerterized query?
The following doesn't work:
SqlParameter prm = new SqlParameter("@BLOBData",
SqlDbType.VarBinary, bytBLOBData.Length, ParameterDirection.Input, false,
0, 0, null, DataRowVersion.Current,
bytBLOBData);
prm.Value = DBNull.Value;
cmd.Parameters.Add(prm);
thanks,
rodchar