PC Review


Reply
Thread Tools Rate Thread

Datable relationship error "columns don't currently have unique values"

 
 
j-in-uk
Guest
Posts: n/a
 
      15th May 2006
Hi,

I seem to get the error on DataRelation r2, the values are unique so I
don't know why I am getting the error. Any sugesstions?

DataRelation r1 = ds.Relations.Add(dtContinent_ContinentID,
dtCountries_ContinentID);
r1.Nested = true;
DataRelation r2 =
ds.Relations.Add(dtCountries_CountryID,dtStates_CountryID);
r2.Nested = true;

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWx0YWYgQWwtQW1pbiBOYWp3YW5p?=
Guest
Posts: n/a
 
      15th May 2006
if you are sure that both tables have unique value then you should check that
whether primary key is defined on tables or not.

"j-in-uk" wrote:

> Hi,
>
> I seem to get the error on DataRelation r2, the values are unique so I
> don't know why I am getting the error. Any sugesstions?
>
> DataRelation r1 = ds.Relations.Add(dtContinent_ContinentID,
> dtCountries_ContinentID);
> r1.Nested = true;
> DataRelation r2 =
> ds.Relations.Add(dtCountries_CountryID,dtStates_CountryID);
> r2.Nested = true;
>
>

 
Reply With Quote
 
Bruce Wood
Guest
Posts: n/a
 
      15th May 2006
Does it have anything to do with the fact that ADO.NET, by default, is
case INsensitive? Are the IDs strings?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Summing unique values (where "unique" depends on multiple criteria") Harry Flashman Microsoft Excel Discussion 4 19th Dec 2009 04:03 AM
union query with "unique" and "is not null" values Mark Kubicki Microsoft Access Form Coding 1 3rd Jun 2009 03:35 PM
"These columns don't currently have unique values" web1110 Microsoft C# .NET 0 20th Nov 2004 02:31 AM
UniqueConstraint error: "These columns don't currently have unique values" Timo Microsoft ADO .NET 0 26th Aug 2003 06:39 PM
UniqueConstraint error: "These columns don't currently have unique values" Timo Microsoft Access 0 26th Aug 2003 06:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:08 PM.