R
Rod
I want to specify a relationship between two data tables in a dataset.
(Both data tables come from executing stored procedures in SQL Server.)
When I tried to add the relationship through the Relations property of the
dataset, I got the following error message:
"The columns don't currently have unique values."
I believe the problem is there is a one-to-many relationship between the
parent data table and the child data table. So my question is how do I
specify that when I create the relationship? Is there a property of the
DataColumn object that I have to specify? Right now I'm trying to link the
two by common columns (client number and case number); should I specify some
other column in the child's DataColumn which would be unique for each
client/case? (I didn't do this in this case, because the example I saw in
David Sceppa's book "Microsoft ADO.NET" didn't do this. I had thought that
I had to specify only those columns from both data tables which would be
linked between the parent and child DataColumns.)
I am using ADO.NET 1.1.
Rod
(Both data tables come from executing stored procedures in SQL Server.)
When I tried to add the relationship through the Relations property of the
dataset, I got the following error message:
"The columns don't currently have unique values."
I believe the problem is there is a one-to-many relationship between the
parent data table and the child data table. So my question is how do I
specify that when I create the relationship? Is there a property of the
DataColumn object that I have to specify? Right now I'm trying to link the
two by common columns (client number and case number); should I specify some
other column in the child's DataColumn which would be unique for each
client/case? (I didn't do this in this case, because the example I saw in
David Sceppa's book "Microsoft ADO.NET" didn't do this. I had thought that
I had to specify only those columns from both data tables which would be
linked between the parent and child DataColumns.)
I am using ADO.NET 1.1.
Rod