If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > reject rows while copying

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-25-06, 18:22
dhuygu dhuygu is offline
Registered User
 
Join Date: Sep 2006
Posts: 20
reject rows while copying

I can not copy some table's rows.copy process exports rows from table creates new table but can not import rows.it is written rows are rejected.
what is the problem?
Reply With Quote
  #2 (permalink)  
Old 09-25-06, 19:52
jinsezh jinsezh is offline
Registered User
 
Join Date: Aug 2006
Posts: 33
Are there any constraints in imported table?
Reply With Quote
  #3 (permalink)  
Old 09-26-06, 01:49
dhuygu dhuygu is offline
Registered User
 
Join Date: Sep 2006
Posts: 20
yes a column has automatic value generation property.
When I make value generation none and then copy it is okey.
But I need the db2 command to find which columns have constraints before copying.is it possible?
Reply With Quote
  #4 (permalink)  
Old 09-26-06, 02:28
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
import

there are options with import to ignore.. generated keys
have a look at online infocenter and import and option modified by ...
all information is in the catalogs :
have a look at syscat views or sysibm tables and find the table
(sysindexes...) that keeps the info depending on what you are looking for
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #5 (permalink)  
Old 09-27-06, 06:33
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
you can also specify message file in ur import statement which will contain details of successfull and failed statement with error code

db2 import from myfile.ixf of ixf messages msg.txt insert into staff

Rahul Singh
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On