tf842
asked on
How can I test all the columns in a table for tab, linefeed or carriage return
I have a dts pkg that uploads data from SQL Server to Oracle. However I get the following error log for the package:
DATA TRANSFORMATION SERVICES: Data Pump Exception Log
Package Name: U_Unload_for_Oracle_Rpts
Package Description: DTS package description
Package ID: {9A3F8C1E-F7D7-4584-B322-C E0499A5852 0}
Package Version: {8EA623B9-7BEA-4A8E-9602-B 7BB3932BFD 4}
Step Name: DTSStep_DTSDataPumpTask_2
Execution Started: 09/06/2006 11:44:42 PM
Error at Destination for Row number 93045. Errors encountered so far in this task: 1.
Error Source: OraOLEDB
Error Description:ROW-00060: Internal error: [dainsert,16]
Error Help File:
Error Help Context ID:0
8339035|1|Rc|LN|05/31/2005 |05/31/200 5|07/01/20 05|||DALLA S|||UNKNOW N|DS|HA|6| 6|3|0|0|3| 0|0|0|0|0| 0|0|0|0|0| 0|0|90/70| 250|10|||9 0/70|250|1 0|||0|500| 500|3|0|0| 3||||0|0.8 9259588459 1237|0.892 5958845912 37|0|||||| |0|||||0|0 ||||5000|5 000||99|62 4|6.303030 3030303|1. 5116969||| 2|DC Only|||11|24|12|22|1.6667| 0.6667||6| L1|05/31/2 005 2:51:00 PM|L1|05/31/2005 2:59:00 PM||||2|Y|TX|85|CN|3|DS|0. 907|TX |6.3|0|0|0|02/14/2005|1.51 17||0|0|0| 0|0|0||Def ault|Defau lt|10000|1 0000|0|0|1 |0|||||||| |||||||||| |||||1.511 7||||||||| |||||||||| ,8339035|1 |Rc|LN|05/ 31/2005|05 /31/2005|0 7/01/2005| ||DS|||UNK NOWN|DS|HA |6|6|3|0|0 |3|0|0|0|0 |0|0|0|0|0 |0|0|0|90/ 70|250|10| ||90/70|25 0|10|||0|5 00|500|3|0 |0|3||||0| 0.89259588 4591237|0. 8925958845 91237|0||| ||||0||||| 0|0||||500 0|5000||99 |624|6.303 0303030303 |1.5116969 |||2|Dc Only|||11|24|12|22|1.6667| 0.6667||6| LJJ5131|05 /31/2005 2:51:00 PM|L1|05/31/2005 2:59:00 PM||||2|Y|TX|85|CN|3|DS|0. 907|TX |6.3|0|0|0|02/14/2005|1.51 17||0|0|0| 0|0|0||Def ault|Defau lt|10000|1 0000|0|0|1 |0|||||||| |||||||||| |||||1.511 7||||||||| |||||||||| ,
Execution Completed: 09/06/2006 11:56:36 PM
************************** ********** ********** ********** ********** ********** ********** ********** ****
Execution Started: 09/07/2006 12:13:05 AM
Error at Destination for Row number 93353. Errors encountered so far in this task: 1.
Error Source: OraOLEDB
Error Description:ROW-00060: Internal error: [dainsert,16]
Error Help File:
Error Help Context ID:0
8342164,2,GG,DI,12/19/2005 ,12/19/200 5,02/01/20 06,,,PX,,, HT,AA,HA,5 0,57,26,5, 8,11,205.3 ,656.93,41 0.58,431.1 2,26,5,8,1 1,205.5,65 7.6,390.44 ,452.1,80/ 60,1000,20 ,,,80/50,1 000,20,,,0 ,2000,2000 ,26,5,8,11 ,,,,16727. 62,0.77627 3562106825 ,0.7567688 72618678,1 6307.32095 8654,,,,,, ,1,,,,,166 49.41,1664 9.41,,,,15 00,2000,,7 44,0,0,0.8 227,,,3,Po ,633178,10 36181,11,2 4,12,22,1, 0,,50,D4,1 2/19/2005 11:20:00 AM,M6,02/02/2006 4:27:00 PM,M6,02/02/2006 4:27:00 PM,,2,N,AZ,13,MA,1,PX,0.82 27,AD ,0,1.02097763588595,0.8227 ,16649.41, 02/14/2005 ,4.2178,,1 ,1,0.8227, 0,0,1,P1,D efault,Def ault,3000, 4000,0,1,1 ,0,,,,,,,, ,,,,,,,,,, ,,,,,0.822 7,,,,,,,,, ,,,,,,,,,,
8342164,2,GG,DI,12/19/2005 ,12/19/200 5,02/01/20 06,,,PX,,, HT,AA,HA,5 0,57,26,5, 8,11,205.3 ,656.93,41 0.58,431.1 2,26,5,8,1 1,205.5,65 7.6,390.44 ,452.1,80/ 60,1000,20 ,,,80/50,1 000,20,,,0 ,2000,2000 ,26,5,8,11 ,,,,16727. 62,0.77627 3562106825 ,0.7567688 72618678,1 6307.32095 8654,,,,,, ,1,,,,,166 49.41,1664 9.41,,,,15 00,2000,,7 44,0,0,0.8 227,,,3,Po ,633178,10 36181,11,2 4,12,22,1, 0,,50,D4,1 2/19/2005 11:20:00 AM,M6,02/02/2006 4:27:00 PM,M6,02/02/2006 4:27:00 PM,,2,N,AZ,13,MA,1,PX,0.82 27,AD ,0,1.02097763588595,0.8227 ,16649.41, 02/14/2005 ,4.2178,,1 ,1,0.8227, 0,0,1,P1,D efault,Def ault,3000, 4000,0,1,1 ,0,,,,,,,, ,,,,,,,,,, ,,,,,0.822 7,,,,,,,,, ,,,,,,,,,,
Execution Completed: 09/07/2006 12:26:35 AM
************************** ********** ********** ********** ********** ********** ********** ********** ****
I believe it is a tab, linefeed or a carriage return. How can I test the data in the table for these characters. In addition, it could be another character.
examples and documentation are needed.
Thank you,
Sami
DATA TRANSFORMATION SERVICES: Data Pump Exception Log
Package Name: U_Unload_for_Oracle_Rpts
Package Description: DTS package description
Package ID: {9A3F8C1E-F7D7-4584-B322-C
Package Version: {8EA623B9-7BEA-4A8E-9602-B
Step Name: DTSStep_DTSDataPumpTask_2
Execution Started: 09/06/2006 11:44:42 PM
Error at Destination for Row number 93045. Errors encountered so far in this task: 1.
Error Source: OraOLEDB
Error Description:ROW-00060: Internal error: [dainsert,16]
Error Help File:
Error Help Context ID:0
8339035|1|Rc|LN|05/31/2005
Execution Completed: 09/06/2006 11:56:36 PM
**************************
Execution Started: 09/07/2006 12:13:05 AM
Error at Destination for Row number 93353. Errors encountered so far in this task: 1.
Error Source: OraOLEDB
Error Description:ROW-00060: Internal error: [dainsert,16]
Error Help File:
Error Help Context ID:0
8342164,2,GG,DI,12/19/2005
8342164,2,GG,DI,12/19/2005
Execution Completed: 09/07/2006 12:26:35 AM
**************************
I believe it is a tab, linefeed or a carriage return. How can I test the data in the table for these characters. In addition, it could be another character.
examples and documentation are needed.
Thank you,
Sami
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
e.g.
Select
case ordinal_position when minord then 'Select * from [' + table_schema +'].[' +Table_name+'] Where '
else ' or ' end
+case when data_type like '%char%' then ''
else 'patindex(''%''+Searchchar
+'['+column_name+']'
+case when data_type like '%char%' then ' like ''%'' + SearchChar + ''%''
else ')> 0 ' end
from Information_schema.columns
inner join (select table_schema,table_name,mi
Where Data_type like '%char%'
or Data_type like '%Text%'
group by table_schema,table_name) as M
on c.table_schema=m.table_sch
and c.table_name=m.table_name
Where Data_type like '%char%'
or Data_type like '%Text%'
order by table_schema,table_name,or