T
Tom Archer
I have a table where I want to store either a location to
a picture (such as a URL) or the actual binary data that
comprises the picture. Since these are two drastically
different data types (string and binary, respectively)
I've defined a column for each possibility.
How do I define a constraint that enforces a rule stating
that one of the columns must have a value and the other
must be null (typical XOR situation) or do I have to do
this manually by subscribing to the data adapter's
RowUpdating event?
a picture (such as a URL) or the actual binary data that
comprises the picture. Since these are two drastically
different data types (string and binary, respectively)
I've defined a column for each possibility.
How do I define a constraint that enforces a rule stating
that one of the columns must have a value and the other
must be null (typical XOR situation) or do I have to do
this manually by subscribing to the data adapter's
RowUpdating event?