 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Carlos Vitoria Guest
|
Posted: Thu Jan 29, 2004 6:18 am Post subject: pb with SQLDataPump (DBExpressPlus) |
|
|
Hi,
I try to use SQLDataPump With D7 enterprise and SQL server2000.
I have SQLConnectionPlus,SQLmetasource and SQLmetadestination connected OK.
If i Try to execute sqldatapump, i jhave the following error: "Destination
table does not have a primary key, unable to continue."
The table have a index created with:
CREATE UNIQUE CLUSTERED
INDEX [E_ARCH_MATERIEL_PK] ON [Staff].[E_ARCH_MATERIEL] ([CLE_MATERIEL])
WITH
DROP_EXISTING
ON [PRIMARY]
what is wrong ?
I have forgot something ?
Thanks for your help.
C. Vitoria
PS. Sorry for my poor English )
|
|
| Back to top |
|
 |
Carlos Vitoria Guest
|
Posted: Thu Jan 29, 2004 9:38 am Post subject: Re: pb with SQLDataPump (DBExpressPlus) |
|
|
I try with Oracle 8.1.7 and i have the same message, (with the BDE batchmove
this works fine in oracle and SQL server2000), but i want to migrate my app
on DBExpress, because i want control for multiple updates in one
transaction, the bde and batchmove can't this, i thing ? maybe wrong think ?
Is a bug of dbexpress/dbexpresplus or i have forgot something ?
Thanks for help.
C. Vitoria
--
"Carlos Vitoria" <c.vitoria (AT) libertysurf (DOT) fr> a écrit dans le message de news:
[email]4018a5b7 (AT) newsgroups (DOT) borland.com[/email]...
| Quote: | Hi,
I try to use SQLDataPump With D7 enterprise and SQL server2000.
I have SQLConnectionPlus,SQLmetasource and SQLmetadestination connected
OK.
If i Try to execute sqldatapump, i jhave the following error: "Destination
table does not have a primary key, unable to continue."
The table have a index created with:
CREATE UNIQUE CLUSTERED
INDEX [E_ARCH_MATERIEL_PK] ON [Staff].[E_ARCH_MATERIEL] ([CLE_MATERIEL])
WITH
DROP_EXISTING
ON [PRIMARY]
what is wrong ?
I have forgot something ?
Thanks for your help.
C. Vitoria
PS. Sorry for my poor English )
|
|
|
| Back to top |
|
 |
Martijn Tonies Guest
|
Posted: Thu Jan 29, 2004 12:52 pm Post subject: Re: pb with SQLDataPump (DBExpressPlus) |
|
|
Hi Carlos,
| Quote: | I try to use SQLDataPump With D7 enterprise and SQL server2000.
I have SQLConnectionPlus,SQLmetasource and SQLmetadestination connected
OK.
If i Try to execute sqldatapump, i jhave the following error: "Destination
table does not have a primary key, unable to continue."
The table have a index created with:
CREATE UNIQUE CLUSTERED
INDEX [E_ARCH_MATERIEL_PK] ON [Staff].[E_ARCH_MATERIEL] ([CLE_MATERIEL])
WITH
DROP_EXISTING
ON [PRIMARY]
what is wrong ?
I have forgot something ?
|
An index is not a constraint. Apparently, dbExpressPlus expects
a primary key constraint, not just an unique index.
--
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
|
|
| Back to top |
|
 |
Carlos VITORIA Guest
|
Posted: Thu Jan 29, 2004 1:28 pm Post subject: Re: pb with SQLDataPump (DBExpressPlus) |
|
|
I try this:
ALTER TABLE [Staff].[E_ARCH_MATERIEL] WITH NOCHECK ADD
CONSTRAINT [PK_E_ARCH_MATERIEL] PRIMARY KEY CLUSTERED
( [CLE_MATERIEL] ) ON [PRIMARY]
but i have the same message ...
Thanks for help
C.Vitoria
--
"Martijn Tonies" <m.tonies@upscene!nospam!.com> a écrit dans le message de
news: 401901a7$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi Carlos,
I try to use SQLDataPump With D7 enterprise and SQL server2000.
I have SQLConnectionPlus,SQLmetasource and SQLmetadestination connected
OK.
If i Try to execute sqldatapump, i jhave the following error:
"Destination
table does not have a primary key, unable to continue."
The table have a index created with:
CREATE UNIQUE CLUSTERED
INDEX [E_ARCH_MATERIEL_PK] ON [Staff].[E_ARCH_MATERIEL]
([CLE_MATERIEL])
WITH
DROP_EXISTING
ON [PRIMARY]
what is wrong ?
I have forgot something ?
An index is not a constraint. Apparently, dbExpressPlus expects
a primary key constraint, not just an unique index.
--
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS
SQL
Server.
Upscene Productions
http://www.upscene.com
|
|
|
| Back to top |
|
 |
Martijn Tonies Guest
|
Posted: Thu Jan 29, 2004 3:10 pm Post subject: Re: pb with SQLDataPump (DBExpressPlus) |
|
|
Hi,
| Quote: | ALTER TABLE [Staff].[E_ARCH_MATERIEL] WITH NOCHECK ADD
CONSTRAINT [PK_E_ARCH_MATERIEL] PRIMARY KEY CLUSTERED
( [CLE_MATERIEL] ) ON [PRIMARY]
but i have the same message ...
|
In that case, I have no idea.
Perhaps you can trace the dbExpressPlus source, if it's available?
--
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
|
|
| Back to top |
|
 |
Carlos VITORIA Guest
|
Posted: Thu Jan 29, 2004 3:13 pm Post subject: Re: pb with SQLDataPump (DBExpressPlus) |
|
|
Ok,
Thanks Martijn, i searching in other ways ...
--
"Martijn Tonies" <m.tonies@upscene!nospam!.com> a écrit dans le message de
news: [email]401921fa (AT) newsgroups (DOT) borland.com[/email]...
| Quote: | Hi,
ALTER TABLE [Staff].[E_ARCH_MATERIEL] WITH NOCHECK ADD
CONSTRAINT [PK_E_ARCH_MATERIEL] PRIMARY KEY CLUSTERED
( [CLE_MATERIEL] ) ON [PRIMARY]
but i have the same message ...
In that case, I have no idea.
Perhaps you can trace the dbExpressPlus source, if it's available?
--
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS
SQL
Server.
Upscene Productions
http://www.upscene.com
|
|
|
| Back to top |
|
 |
Thomas Miller Guest
|
Posted: Thu Jan 29, 2004 3:23 pm Post subject: Re: pb with SQLDataPump (DBExpressPlus) |
|
|
Which driver are you using. Most of the drivers from Borland do not
return the primary key. Their IB driver doesn't return any indexes
at all. So this is most likely a driver bug.
Carlos Vitoria wrote:
| Quote: | Hi,
I try to use SQLDataPump With D7 enterprise and SQL server2000.
I have SQLConnectionPlus,SQLmetasource and SQLmetadestination connected OK.
If i Try to execute sqldatapump, i jhave the following error: "Destination
table does not have a primary key, unable to continue."
The table have a index created with:
CREATE UNIQUE CLUSTERED
INDEX [E_ARCH_MATERIEL_PK] ON [Staff].[E_ARCH_MATERIEL] ([CLE_MATERIEL])
WITH
DROP_EXISTING
ON [PRIMARY]
what is wrong ?
I have forgot something ?
Thanks for your help.
C. Vitoria
PS. Sorry for my poor English )
|
--
Thomas Miller
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork
http://www.bss-software.com
http://sourceforge.net/projects/dbexpressplus
|
|
| Back to top |
|
 |
Carlos VITORIA Guest
|
Posted: Thu Jan 29, 2004 4:32 pm Post subject: Re: pb with SQLDataPump (DBExpressPlus) |
|
|
Hi,
I use the MSSQL dbexpress driver from borland Delphi7 Update1
Thanks for help
C. Vitoria
--
"Thomas Miller" <tmiller (AT) bss-software (DOT) com> a écrit dans le message de news:
[email]40192985 (AT) newsgroups (DOT) borland.com[/email]...
| Quote: | Which driver are you using. Most of the drivers from Borland do not
return the primary key. Their IB driver doesn't return any indexes
at all. So this is most likely a driver bug.
Carlos Vitoria wrote:
Hi,
I try to use SQLDataPump With D7 enterprise and SQL server2000.
I have SQLConnectionPlus,SQLmetasource and SQLmetadestination connected
OK.
If i Try to execute sqldatapump, i jhave the following error:
"Destination
table does not have a primary key, unable to continue."
The table have a index created with:
CREATE UNIQUE CLUSTERED
INDEX [E_ARCH_MATERIEL_PK] ON [Staff].[E_ARCH_MATERIEL]
([CLE_MATERIEL])
WITH
DROP_EXISTING
ON [PRIMARY]
what is wrong ?
I have forgot something ?
Thanks for your help.
C. Vitoria
PS. Sorry for my poor English )
--
Thomas Miller
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork
http://www.bss-software.com
http://sourceforge.net/projects/dbexpressplus
|
|
|
| Back to top |
|
 |
Carlos VITORIA Guest
|
Posted: Thu Jan 29, 2004 4:56 pm Post subject: Re: pb with SQLDataPump (DBExpressPlus) |
|
|
I have tried with DBExpressSda driver (Trial version) for SQL SERVER from
CORE LABS, and i have the same Pb.
--
"Thomas Miller" <tmiller (AT) bss-software (DOT) com> a écrit dans le message de news:
[email]40192985 (AT) newsgroups (DOT) borland.com[/email]...
| Quote: | Which driver are you using. Most of the drivers from Borland do not
return the primary key. Their IB driver doesn't return any indexes
at all. So this is most likely a driver bug.
Carlos Vitoria wrote:
Hi,
I try to use SQLDataPump With D7 enterprise and SQL server2000.
I have SQLConnectionPlus,SQLmetasource and SQLmetadestination connected
OK.
If i Try to execute sqldatapump, i jhave the following error:
"Destination
table does not have a primary key, unable to continue."
The table have a index created with:
CREATE UNIQUE CLUSTERED
INDEX [E_ARCH_MATERIEL_PK] ON [Staff].[E_ARCH_MATERIEL]
([CLE_MATERIEL])
WITH
DROP_EXISTING
ON [PRIMARY]
what is wrong ?
I have forgot something ?
Thanks for your help.
C. Vitoria
PS. Sorry for my poor English )
--
Thomas Miller
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork
http://www.bss-software.com
http://sourceforge.net/projects/dbexpressplus
|
|
|
| Back to top |
|
 |
Thomas Miller Guest
|
Posted: Thu Jan 29, 2004 5:23 pm Post subject: Re: pb with SQLDataPump (DBExpressPlus) |
|
|
Can you test the driver with the MetaData test utility I just posted?
http://codecentral.borland.com/codecentral/ccWeb.exe/listing?id=21377
This will confirm whether it is a driver problem or a bug in dbExpressPlus.
Hopefully it is easy to figure out how to use.
Select a driver, login.
Use the drop down list boxes to choose what you want to test and
then click "Execute".
Highlight the object you want to test then move onto the next level.
In this case select Tables then Execute.
Select your table from the list.
Go to the next box and select primary key then Execute.
If nothing shows up, then the drivers have a bug.
Carlos VITORIA wrote:
| Quote: | I have tried with DBExpressSda driver (Trial version) for SQL SERVER from
CORE LABS, and i have the same Pb.
--
"Thomas Miller" <tmiller (AT) bss-software (DOT) com> a écrit dans le message de news:
[email]40192985 (AT) newsgroups (DOT) borland.com[/email]...
Which driver are you using. Most of the drivers from Borland do not
return the primary key. Their IB driver doesn't return any indexes
at all. So this is most likely a driver bug.
Carlos Vitoria wrote:
Hi,
I try to use SQLDataPump With D7 enterprise and SQL server2000.
I have SQLConnectionPlus,SQLmetasource and SQLmetadestination connected
OK.
If i Try to execute sqldatapump, i jhave the following error:
"Destination
table does not have a primary key, unable to continue."
The table have a index created with:
CREATE UNIQUE CLUSTERED
INDEX [E_ARCH_MATERIEL_PK] ON [Staff].[E_ARCH_MATERIEL]
([CLE_MATERIEL])
WITH
DROP_EXISTING
ON [PRIMARY]
what is wrong ?
I have forgot something ?
Thanks for your help.
C. Vitoria
PS. Sorry for my poor English )
--
Thomas Miller
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork
http://www.bss-software.com
http://sourceforge.net/projects/dbexpressplus
|
--
Thomas Miller
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork
http://www.bss-software.com
http://sourceforge.net/projects/dbexpressplus
|
|
| Back to top |
|
 |
Carlos VITORIA Guest
|
Posted: Thu Jan 29, 2004 5:53 pm Post subject: Re: pb with SQLDataPump (DBExpressPlus) |
|
|
I have tried the utility today with "standard" driver delphi7 update1 and
core labs driver too, and dont have nothing if i choose getprimarykeyfields
or getprimarykeyfieldsname, other options shows a values.
I use Win XP-Pro SP1.
Thanks for your help Thomas.
--
"Thomas Miller" <tmiller (AT) bss-software (DOT) com> a écrit dans le message de news:
4019459f$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Can you test the driver with the MetaData test utility I just posted?
http://codecentral.borland.com/codecentral/ccWeb.exe/listing?id=21377
This will confirm whether it is a driver problem or a bug in
dbExpressPlus.
Hopefully it is easy to figure out how to use.
Select a driver, login.
Use the drop down list boxes to choose what you want to test and
then click "Execute".
Highlight the object you want to test then move onto the next level.
In this case select Tables then Execute.
Select your table from the list.
Go to the next box and select primary key then Execute.
If nothing shows up, then the drivers have a bug.
Carlos VITORIA wrote:
I have tried with DBExpressSda driver (Trial version) for SQL SERVER
from
CORE LABS, and i have the same Pb.
--
"Thomas Miller" <tmiller (AT) bss-software (DOT) com> a écrit dans le message de
news:
[email]40192985 (AT) newsgroups (DOT) borland.com[/email]...
Which driver are you using. Most of the drivers from Borland do not
return the primary key. Their IB driver doesn't return any indexes
at all. So this is most likely a driver bug.
Carlos Vitoria wrote:
Hi,
I try to use SQLDataPump With D7 enterprise and SQL server2000.
I have SQLConnectionPlus,SQLmetasource and SQLmetadestination connected
OK.
If i Try to execute sqldatapump, i jhave the following error:
"Destination
table does not have a primary key, unable to continue."
The table have a index created with:
CREATE UNIQUE CLUSTERED
INDEX [E_ARCH_MATERIEL_PK] ON [Staff].[E_ARCH_MATERIEL]
([CLE_MATERIEL])
WITH
DROP_EXISTING
ON [PRIMARY]
what is wrong ?
I have forgot something ?
Thanks for your help.
C. Vitoria
PS. Sorry for my poor English )
--
Thomas Miller
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork
http://www.bss-software.com
http://sourceforge.net/projects/dbexpressplus
--
Thomas Miller
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork
http://www.bss-software.com
http://sourceforge.net/projects/dbexpressplus
|
|
|
| Back to top |
|
 |
Thomas Miller Guest
|
Posted: Thu Jan 29, 2004 6:36 pm Post subject: Re: pb with SQLDataPump (DBExpressPlus) |
|
|
Contact Corelabs and see if they will fix the driver.
Carlos VITORIA wrote:
| Quote: | I have tried the utility today with "standard" driver delphi7 update1 and
core labs driver too, and dont have nothing if i choose getprimarykeyfields
or getprimarykeyfieldsname, other options shows a values.
I use Win XP-Pro SP1.
Thanks for your help Thomas.
--
-- |
Thomas Miller
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork
http://www.bss-software.com
http://sourceforge.net/projects/dbexpressplus
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|