PC Review


Reply
Thread Tools Rate Thread

DataSet Locale problem

 
 
Matt F
Guest
Posts: n/a
 
      8th Feb 2007
I have an application that utilizes a dataset. I've found just today, that
if the regional language settings are changed at the point of where I
instantiate the DataSet an error is thrown of: "Cannot add a DataRelation or
Constraint that has different Locale or CaseSensitive settings between its
parent and child tables." The particular dataset in question contains 4
tables. All state that the locale is "English (United States)"

A few things of interest:
1: In three of the four tables the Locale is listed in the properties
bolded, as if it's a default that's been changed. The fourth is in standard
font.
2: Attempting to change any of the locale settings results in a "Propety Is
Not Valid" dialog with details that state: "Cannot change CaseSensitive or
Locale property. This change would lead to at least one DataRelation or
Constraint to have different Locale or CaseSensitive settings between its
related tables."
3: CaseSenstive for all four tables is False
4: If I change the regional settings on my development machine to "Dutch
(Netherlands)" and attempt to load the DataSet in the VS dataset designer,
it won't allow me, stating the same error as when I try to instantiate at
runtime.
5: This is what I think may be the key: The first three tables were added by
dragging from server explorer from an MSDE instance. Then I migrated the
application to SQLExpress and added another table. This table was added by
dragging from the SQL Express instance to the dataset designer. The three
tables that list the Locale property in bold are the tables that were added
from the MSDE instance. The fourth is from the SQLExpress instance.

I have tried removing each of the tables from the dataset and re-adding them
and re-creating the relations, but that doesn't seem to make any difference.

This really has me stumped. Any suggestions?


 
Reply With Quote
 
 
 
 
Matt F
Guest
Posts: n/a
 
      8th Feb 2007
I've solved this problem, and wanted to post back the answer.

The fourth table that was causing the problems had a TableAdapter attached
to it that could be seen in the dataset designer. As this isn't used
anywhere in my code, I simply removed it and all is working fine.

"Matt F" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have an application that utilizes a dataset. I've found just today, that
>if the regional language settings are changed at the point of where I
>instantiate the DataSet an error is thrown of: "Cannot add a DataRelation
>or Constraint that has different Locale or CaseSensitive settings between
>its parent and child tables." The particular dataset in question contains
>4 tables. All state that the locale is "English (United States)"
>
> A few things of interest:
> 1: In three of the four tables the Locale is listed in the properties
> bolded, as if it's a default that's been changed. The fourth is in
> standard font.
> 2: Attempting to change any of the locale settings results in a "Propety
> Is Not Valid" dialog with details that state: "Cannot change CaseSensitive
> or Locale property. This change would lead to at least one DataRelation or
> Constraint to have different Locale or CaseSensitive settings between its
> related tables."
> 3: CaseSenstive for all four tables is False
> 4: If I change the regional settings on my development machine to "Dutch
> (Netherlands)" and attempt to load the DataSet in the VS dataset designer,
> it won't allow me, stating the same error as when I try to instantiate at
> runtime.
> 5: This is what I think may be the key: The first three tables were added
> by dragging from server explorer from an MSDE instance. Then I migrated
> the application to SQLExpress and added another table. This table was
> added by dragging from the SQL Express instance to the dataset designer.
> The three tables that list the Locale property in bold are the tables that
> were added from the MSDE instance. The fourth is from the SQLExpress
> instance.
>
> I have tried removing each of the tables from the dataset and re-adding
> them and re-creating the relations, but that doesn't seem to make any
> difference.
>
> This really has me stumped. Any suggestions?
>
>



 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      8th Feb 2007
Thanks Matt,

I was curious what this could be.

Cor

"Matt F" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> I've solved this problem, and wanted to post back the answer.
>
> The fourth table that was causing the problems had a TableAdapter attached
> to it that could be seen in the dataset designer. As this isn't used
> anywhere in my code, I simply removed it and all is working fine.
>
> "Matt F" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I have an application that utilizes a dataset. I've found just today,
>>that if the regional language settings are changed at the point of where I
>>instantiate the DataSet an error is thrown of: "Cannot add a DataRelation
>>or Constraint that has different Locale or CaseSensitive settings between
>>its parent and child tables." The particular dataset in question contains
>>4 tables. All state that the locale is "English (United States)"
>>
>> A few things of interest:
>> 1: In three of the four tables the Locale is listed in the properties
>> bolded, as if it's a default that's been changed. The fourth is in
>> standard font.
>> 2: Attempting to change any of the locale settings results in a "Propety
>> Is Not Valid" dialog with details that state: "Cannot change
>> CaseSensitive or Locale property. This change would lead to at least one
>> DataRelation or Constraint to have different Locale or CaseSensitive
>> settings between its related tables."
>> 3: CaseSenstive for all four tables is False
>> 4: If I change the regional settings on my development machine to "Dutch
>> (Netherlands)" and attempt to load the DataSet in the VS dataset
>> designer, it won't allow me, stating the same error as when I try to
>> instantiate at runtime.
>> 5: This is what I think may be the key: The first three tables were added
>> by dragging from server explorer from an MSDE instance. Then I migrated
>> the application to SQLExpress and added another table. This table was
>> added by dragging from the SQL Express instance to the dataset designer.
>> The three tables that list the Locale property in bold are the tables
>> that were added from the MSDE instance. The fourth is from the
>> SQLExpress instance.
>>
>> I have tried removing each of the tables from the dataset and re-adding
>> them and re-creating the relations, but that doesn't seem to make any
>> difference.
>>
>> This really has me stumped. Any suggestions?
>>
>>

>
>



 
Reply With Quote
 
WenYuan Wang
Guest
Posts: n/a
 
      8th Feb 2007
Hi Matt,

We need to perform more research on this issue . We will reply here as soon
as possible.
If you have any more concerns on it, please feel free to post here.

Thanks for your understanding!
Best regards,
Wen Yuan

 
Reply With Quote
 
WenYuan Wang
Guest
Posts: n/a
 
      8th Feb 2007
Thanks Matt,

It seems like I posted too fast. I'm very glad to hear you have resolve the
issue and kindly post back the solution. Thank for your information, again.

Have a great day!
Best regards,
Wen Yuan

 
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
DataSet.xsd and Locale Dimitris Milonas Microsoft ADO .NET 1 29th Nov 2007 02:09 PM
Property DataSet.Locale barzot@msn.com Microsoft ADO .NET 0 11th Oct 2007 12:08 PM
Problem with DataSet.Locale settings. schaf Microsoft C# .NET 0 9th Oct 2006 06:01 PM
Typed Dataset Reserved Word: Locale Michael McHenry Microsoft ADO .NET 4 20th Jun 2005 06:10 PM
Terminal Client over VPN locale printer locale drives Sveeny Microsoft Windows 2000 Terminal Server Clients 2 26th Nov 2003 10:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:59 AM.