Dariusz Tomon wrote:
> Hi
> I'm trying to change structure of table 'TB_KONTAKT' to add a fiew fields
-
> but during that I get the following error message:
> 'TB_KONTAKT' table
> - Unable to create index 'PK__TB_KONTAKT__04AFB25B'.
> ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CRE
ATE UNIQUE
> INDEX terminated because a duplicate key was found for index ID 1. Most
> significant primary key is '1190914'.
> [Microsoft][ODBC SQL Server Driver][SQL Server]Could not creat
e constraint.
> See previous errors.
> [Microsoft][ODBC SQL Server Driver][SQL Server]The statement h
as been
> terminated.
> That index is already build and I'm rather scared of destroying it.
> How can I fix the problem?
> Best Regards
> Darek T.
>
It looks like you're attempting to define a primary key on your table.
Primary keys must be unique, and the field(s) that you're keying on have
some duplicate values.Dariusz Tomon,
Are you using Enterprise Manager to apply this change (add new columns)?
AMB
"Dariusz Tomon" wrote:
> Hi
> I'm trying to change structure of table 'TB_KONTAKT' to add a fiew fields
-
> but during that I get the following error message:
> 'TB_KONTAKT' table
> - Unable to create index 'PK__TB_KONTAKT__04AFB25B'.
> ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CRE
ATE UNIQUE
> INDEX terminated because a duplicate key was found for index ID 1. Most
> significant primary key is '1190914'.
> [Microsoft][ODBC SQL Server Driver][SQL Server]Could not creat
e constraint.
> See previous errors.
> [Microsoft][ODBC SQL Server Driver][SQL Server]The statement h
as been
> terminated.
> That index is already build and I'm rather scared of destroying it.
> How can I fix the problem?
> Best Regards
> Darek T.
>
>|||Hi
I'm trying to change structure of table 'TB_KONTAKT' to add a fiew fields -
but during that I get the following error message:
'TB_KONTAKT' table
- Unable to create index 'PK__TB_KONTAKT__04AFB25B'.
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CREAT
E UNIQUE
INDEX terminated because a duplicate key was found for index ID 1. Most
significant primary key is '1190914'.
[Microsoft][ODBC SQL Server Driver][SQL Server]Could not create
constraint.
See previous errors.
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has
been
terminated.
That index is already build and I'm rather scared of destroying it.
How can I fix the problem?
Best Regards
Darek T.|||Dariusz Tomon wrote:
> Hi
> I'm trying to change structure of table 'TB_KONTAKT' to add a fiew fields
-
> but during that I get the following error message:
> 'TB_KONTAKT' table
> - Unable to create index 'PK__TB_KONTAKT__04AFB25B'.
> ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CRE
ATE UNIQUE
> INDEX terminated because a duplicate key was found for index ID 1. Most
> significant primary key is '1190914'.
> [Microsoft][ODBC SQL Server Driver][SQL Server]Could not creat
e constraint.
> See previous errors.
> [Microsoft][ODBC SQL Server Driver][SQL Server]The statement h
as been
> terminated.
> That index is already build and I'm rather scared of destroying it.
> How can I fix the problem?
> Best Regards
> Darek T.
>
It looks like you're attempting to define a primary key on your table.
Primary keys must be unique, and the field(s) that you're keying on have
some duplicate values.|||Dariusz Tomon,
Are you using Enterprise Manager to apply this change (add new columns)?
AMB
"Dariusz Tomon" wrote:
> Hi
> I'm trying to change structure of table 'TB_KONTAKT' to add a fiew fields
-
> but during that I get the following error message:
> 'TB_KONTAKT' table
> - Unable to create index 'PK__TB_KONTAKT__04AFB25B'.
> ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CRE
ATE UNIQUE
> INDEX terminated because a duplicate key was found for index ID 1. Most
> significant primary key is '1190914'.
> [Microsoft][ODBC SQL Server Driver][SQL Server]Could not creat
e constraint.
> See previous errors.
> [Microsoft][ODBC SQL Server Driver][SQL Server]The statement h
as been
> terminated.
> That index is already build and I'm rather scared of destroying it.
> How can I fix the problem?
> Best Regards
> Darek T.
>
>
Showing posts with label duplicates. Show all posts
Showing posts with label duplicates. Show all posts
Friday, March 23, 2012
problem with index and duplicates
Hi
I'm trying to change structure of table 'TB_KONTAKT' to add a fiew fields -
but during that I get the following error message:
'TB_KONTAKT' table
- Unable to create index 'PK__TB_KONTAKT__04AFB25B'.
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CREATE UNIQUE
INDEX terminated because a duplicate key was found for index ID 1. Most
significant primary key is '1190914'.
[Microsoft][ODBC SQL Server Driver][SQL Server]Could not create constraint.
See previous errors.
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been
terminated.
That index is already build and I'm rather scared of destroying it.
How can I fix the problem?
Best Regards
Darek T.Dariusz Tomon wrote:
> Hi
> I'm trying to change structure of table 'TB_KONTAKT' to add a fiew fields -
> but during that I get the following error message:
> 'TB_KONTAKT' table
> - Unable to create index 'PK__TB_KONTAKT__04AFB25B'.
> ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CREATE UNIQUE
> INDEX terminated because a duplicate key was found for index ID 1. Most
> significant primary key is '1190914'.
> [Microsoft][ODBC SQL Server Driver][SQL Server]Could not create constraint.
> See previous errors.
> [Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been
> terminated.
> That index is already build and I'm rather scared of destroying it.
> How can I fix the problem?
> Best Regards
> Darek T.
>
It looks like you're attempting to define a primary key on your table.
Primary keys must be unique, and the field(s) that you're keying on have
some duplicate values.|||Dariusz Tomon,
Are you using Enterprise Manager to apply this change (add new columns)?
AMB
"Dariusz Tomon" wrote:
> Hi
> I'm trying to change structure of table 'TB_KONTAKT' to add a fiew fields -
> but during that I get the following error message:
> 'TB_KONTAKT' table
> - Unable to create index 'PK__TB_KONTAKT__04AFB25B'.
> ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CREATE UNIQUE
> INDEX terminated because a duplicate key was found for index ID 1. Most
> significant primary key is '1190914'.
> [Microsoft][ODBC SQL Server Driver][SQL Server]Could not create constraint.
> See previous errors.
> [Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been
> terminated.
> That index is already build and I'm rather scared of destroying it.
> How can I fix the problem?
> Best Regards
> Darek T.
>
>
I'm trying to change structure of table 'TB_KONTAKT' to add a fiew fields -
but during that I get the following error message:
'TB_KONTAKT' table
- Unable to create index 'PK__TB_KONTAKT__04AFB25B'.
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CREATE UNIQUE
INDEX terminated because a duplicate key was found for index ID 1. Most
significant primary key is '1190914'.
[Microsoft][ODBC SQL Server Driver][SQL Server]Could not create constraint.
See previous errors.
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been
terminated.
That index is already build and I'm rather scared of destroying it.
How can I fix the problem?
Best Regards
Darek T.Dariusz Tomon wrote:
> Hi
> I'm trying to change structure of table 'TB_KONTAKT' to add a fiew fields -
> but during that I get the following error message:
> 'TB_KONTAKT' table
> - Unable to create index 'PK__TB_KONTAKT__04AFB25B'.
> ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CREATE UNIQUE
> INDEX terminated because a duplicate key was found for index ID 1. Most
> significant primary key is '1190914'.
> [Microsoft][ODBC SQL Server Driver][SQL Server]Could not create constraint.
> See previous errors.
> [Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been
> terminated.
> That index is already build and I'm rather scared of destroying it.
> How can I fix the problem?
> Best Regards
> Darek T.
>
It looks like you're attempting to define a primary key on your table.
Primary keys must be unique, and the field(s) that you're keying on have
some duplicate values.|||Dariusz Tomon,
Are you using Enterprise Manager to apply this change (add new columns)?
AMB
"Dariusz Tomon" wrote:
> Hi
> I'm trying to change structure of table 'TB_KONTAKT' to add a fiew fields -
> but during that I get the following error message:
> 'TB_KONTAKT' table
> - Unable to create index 'PK__TB_KONTAKT__04AFB25B'.
> ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]CREATE UNIQUE
> INDEX terminated because a duplicate key was found for index ID 1. Most
> significant primary key is '1190914'.
> [Microsoft][ODBC SQL Server Driver][SQL Server]Could not create constraint.
> See previous errors.
> [Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been
> terminated.
> That index is already build and I'm rather scared of destroying it.
> How can I fix the problem?
> Best Regards
> Darek T.
>
>
Wednesday, March 21, 2012
Problem with Hide Duplicates?
When I put a total beneath a column for which the "Hide Duplicates"
checkbox is checked, the hidden values are still counted in the total.
I don't want the hidden values to be counted in the total. Can someone
tell me if this is how Hide Duplicates is supposed to work and/or
suggest a possible workaround?I am wondering why no one has answered this question as I too am
interested in an explanation of this behavior.
I was under the impression that Microsoft moderated this newsgroup and
made some sort of promise to respond to these kinds of questions.
Please help!|||Hi, Lee.
The way hide duplicates works is that it doesn't show a duplicate value in
the table, but this value is still part of the dataset. So when you do the
total of the field, it doesn't look at the table it just looks at the dataset
and sums the data. Therefore it counts all the data.
A possible workaround is, if all of the values are the same, then take the
first one.
If not, it is a lot more difficult. First try to change your dataset to
retrieve only unique values, if possible. Otherwise, custom code will
probably be needed. Probably build an array of unique values. The last
solution I have not tested and I'm not sure how it would actually work.
I hope this helps.
"Lee" wrote:
> When I put a total beneath a column for which the "Hide Duplicates"
> checkbox is checked, the hidden values are still counted in the total.
> I don't want the hidden values to be counted in the total. Can someone
> tell me if this is how Hide Duplicates is supposed to work and/or
> suggest a possible workaround?
>|||Replace Count(...) with CountDistinct(...)
GeoSynch
"Anton" <Anton@.discussions.microsoft.com> wrote in message
news:A95DC535-C2D4-4FF1-AC59-C7A75DA6834A@.microsoft.com...
> Hi, Lee.
> The way hide duplicates works is that it doesn't show a duplicate value in
> the table, but this value is still part of the dataset. So when you do the
> total of the field, it doesn't look at the table it just looks at the dataset
> and sums the data. Therefore it counts all the data.
> A possible workaround is, if all of the values are the same, then take the
> first one.
> If not, it is a lot more difficult. First try to change your dataset to
> retrieve only unique values, if possible. Otherwise, custom code will
> probably be needed. Probably build an array of unique values. The last
> solution I have not tested and I'm not sure how it would actually work.
> I hope this helps.
> "Lee" wrote:
>> When I put a total beneath a column for which the "Hide Duplicates"
>> checkbox is checked, the hidden values are still counted in the total.
>> I don't want the hidden values to be counted in the total. Can someone
>> tell me if this is how Hide Duplicates is supposed to work and/or
>> suggest a possible workaround?
>>
checkbox is checked, the hidden values are still counted in the total.
I don't want the hidden values to be counted in the total. Can someone
tell me if this is how Hide Duplicates is supposed to work and/or
suggest a possible workaround?I am wondering why no one has answered this question as I too am
interested in an explanation of this behavior.
I was under the impression that Microsoft moderated this newsgroup and
made some sort of promise to respond to these kinds of questions.
Please help!|||Hi, Lee.
The way hide duplicates works is that it doesn't show a duplicate value in
the table, but this value is still part of the dataset. So when you do the
total of the field, it doesn't look at the table it just looks at the dataset
and sums the data. Therefore it counts all the data.
A possible workaround is, if all of the values are the same, then take the
first one.
If not, it is a lot more difficult. First try to change your dataset to
retrieve only unique values, if possible. Otherwise, custom code will
probably be needed. Probably build an array of unique values. The last
solution I have not tested and I'm not sure how it would actually work.
I hope this helps.
"Lee" wrote:
> When I put a total beneath a column for which the "Hide Duplicates"
> checkbox is checked, the hidden values are still counted in the total.
> I don't want the hidden values to be counted in the total. Can someone
> tell me if this is how Hide Duplicates is supposed to work and/or
> suggest a possible workaround?
>|||Replace Count(...) with CountDistinct(...)
GeoSynch
"Anton" <Anton@.discussions.microsoft.com> wrote in message
news:A95DC535-C2D4-4FF1-AC59-C7A75DA6834A@.microsoft.com...
> Hi, Lee.
> The way hide duplicates works is that it doesn't show a duplicate value in
> the table, but this value is still part of the dataset. So when you do the
> total of the field, it doesn't look at the table it just looks at the dataset
> and sums the data. Therefore it counts all the data.
> A possible workaround is, if all of the values are the same, then take the
> first one.
> If not, it is a lot more difficult. First try to change your dataset to
> retrieve only unique values, if possible. Otherwise, custom code will
> probably be needed. Probably build an array of unique values. The last
> solution I have not tested and I'm not sure how it would actually work.
> I hope this helps.
> "Lee" wrote:
>> When I put a total beneath a column for which the "Hide Duplicates"
>> checkbox is checked, the hidden values are still counted in the total.
>> I don't want the hidden values to be counted in the total. Can someone
>> tell me if this is how Hide Duplicates is supposed to work and/or
>> suggest a possible workaround?
>>
Subscribe to:
Posts (Atom)