unable to create unique index while dbimport ...
Posted in 2006
Topics: Migration, Import/Export & Data Conversion
Hi, I am trying to import database on windows 2003 server. At the statement of unique index creation on 3 fields, it throws error - "Can not create unique index" because the records exist with duplicate values. I checked the records and there is no duplicate record.... Also if I create the unique index first and then insert the records then it works fine, but if I insert the records and try to create the unique index, it fails with error indicating the records have duplicate values. Also, if I export the same table and import on SQL server, everything runs fine ... What can be the problem? Nandkishor Singare Misys Healthcare Systems (I) Pvt, Ltd, Bangalore - 560 066, Karnataka, India. Phone: +91-80-41156403 / +91-80-41938500 Extn - 146 Email: Nandkishor.Singare@misyshealthcare.com
Sounds like a bug. Contact tech support. BTW, version information is helpful when posting. Art S. Kagel ----- Original Message ----- From: Nandkishor Singare <ids@iiug.org> At: 11/03 1:13:35 Hi, I am trying to import database on windows 2003 server. At the statement of unique index creation on 3 fields, it throws error - "Can not create unique index" because the records exist with duplicate values. I checked the records and there is no duplicate record.... Also if I create the unique index first and then insert the records then it works fine, but if I insert the records and try to create the unique index, it fails with error indicating the records have duplicate values. Also, if I export the same table and import on SQL server, everything runs fine ... What can be the problem? Nandkishor Singare Misys Healthcare Systems (I) Pvt, Ltd, Bangalore - 560 066, Karnataka, India. Phone: +91-80-41156403 / +91-80-41938500 Extn - 146 Email: Nandkishor.Singare@misyshealthcare.com ******************************************************************************* Forum Note: Use "Reply" to post a response in the discussion forum.
Check if your table have a NULL value in some of the index fields:
Select * from mytable
Where key_field1 is null or key_filed2 is null or key_field3 is null
-----Mensaje original-----
De: Nandkishor Singare [mailto:ns.singare@gmail.com]
Enviado el: Viernes, 03 de Noviembre de 2006 12:05 a.m.
Para: ids@iiug.org
Asunto: unable to create unique index while dbimport ... [7719]
Hi,
I am trying to import database on windows 2003 server. At the statement of
unique index creation on 3 fields, it throws error - "Can not create unique
index" because the records exist with duplicate values. I checked the
records and there is no duplicate record....
Also if I create the unique index first and then insert the records then it
works fine, but if I insert the records and try to create the unique index,
it fails with error indicating the records have duplicate values.
Also, if I export the same table and import on SQL server, everything runs
fine ...
What can be the problem?
Nandkishor Singare
Misys Healthcare Systems (I) Pvt, Ltd,
Bangalore - 560 066,
Karnataka, India.
Phone: +91-80-41156403 / +91-80-41938500 Extn - 146
Email: Nandkishor.Singare@misyshealthcare.com
****************************************************************************
***
Forum Note: Use "Reply" to post a response in the discussion forum.
HI,
The unique index is being created on 3 fields and none of them is having the
null value...
I am using Informix 9.4 on windows 2003 server.
Regards,
Nandkishor Singare
On 11/3/06, Julio Gerardo Flores Olvera <julio.flores@isosa.com.mx> wrote:
>
>
> Check if your table have a NULL value in some of the index fields:
>
> Select * from mytable
> Where key_field1 is null or key_filed2 is null or key_field3 is null>
> -----Mensaje original-----
> De: Nandkishor Singare [mailto:ns.singare@gmail.com]
> Enviado el: Viernes, 03 de Noviembre de 2006 12:05 a.m.
> Para: ids@iiug.org
> Asunto: unable to create unique index while dbimport ... [7719]
>
> Hi,
>
> I am trying to import database on windows 2003 server. At the statement of
> unique index creation on 3 fields, it throws error - "Can not create
> unique
> index" because the records exist with duplicate values. I checked the
> records and there is no duplicate record....
>
> Also if I create the unique index first and then insert the records then
> it
> works fine, but if I insert the records and try to create the unique
> index,
> it fails with error indicating the records have duplicate values.
>
> Also, if I export the same table and import on SQL server, everything runs
> fine ...
>
> What can be the problem?
> Nandkishor Singare
> Misys Healthcare Systems (I) Pvt, Ltd,
> Bangalore - 560 066,
> Karnataka, India.
> Phone: +91-80-41156403 / +91-80-41938500 Extn - 146
> Email: Nandkishor.Singare@misyshealthcare.com
>
>
> ****************************************************************************
> ***
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>