dbTalk Databases Forums  

Record causing an error

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Record causing an error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ed
 
Posts: n/a

Default Record causing an error - 08-22-2005 , 09:09 AM






Hi,
I think the major issue when I import data from Excel, Text, or Access
into the database on SQL Server, if the error occurs, I really cannot tell
what record(s) is causing the error of the package. Is there anyway I can
find out the bad record(s) casuing the error???
I used to check on the "Always commit the final batch" and set the "Commit
Batch Size" to 1 so that I can tell what would be the last record to commit
successfully and look at the next record in the source file to find the
caused error one. Is there any better way of doing this?

Thanks
Ed

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Record causing an error - 08-22-2005 , 12:35 PM






If you are using SQL Server 2000 have you looked at the last tab of the
datapump task for logging of errors? It will allow you to log failing rows.
I have not always managed to get this to work though so your mileage may
vary.

Another way and it is a long way as well would be to note the error because
that should tell you the attribute name and the type of error. You can then
write queries against your source to detect the rows. Text files will need
to be imported to a scratch working table first of course.



"Ed" <Ed (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,
I think the major issue when I import data from Excel, Text, or Access
into the database on SQL Server, if the error occurs, I really cannot tell
what record(s) is causing the error of the package. Is there anyway I can
find out the bad record(s) casuing the error???
I used to check on the "Always commit the final batch" and set the "Commit
Batch Size" to 1 so that I can tell what would be the last record to
commit
successfully and look at the next record in the source file to find the
caused error one. Is there any better way of doing this?

Thanks
Ed



Reply With Quote
  #3  
Old   
Ed
 
Posts: n/a

Default Re: Record causing an error - 08-22-2005 , 01:48 PM



The issue for the first method is it is not always tell me the correct source
row number that causes the error...
and if there are more than one errors happen in the source file, i don't see
the error log file can log more than one rows....
Ed

"Allan Mitchell" wrote:

Quote:
If you are using SQL Server 2000 have you looked at the last tab of the
datapump task for logging of errors? It will allow you to log failing rows.
I have not always managed to get this to work though so your mileage may
vary.

Another way and it is a long way as well would be to note the error because
that should tell you the attribute name and the type of error. You can then
write queries against your source to detect the rows. Text files will need
to be imported to a scratch working table first of course.



"Ed" <Ed (AT) discussions (DOT) microsoft.com> wrote in message
news:9A73E758-6FC6-43B6-A21A-5B3DB08766F5 (AT) microsoft (DOT) com...
Hi,
I think the major issue when I import data from Excel, Text, or Access
into the database on SQL Server, if the error occurs, I really cannot tell
what record(s) is causing the error of the package. Is there anyway I can
find out the bad record(s) casuing the error???
I used to check on the "Always commit the final batch" and set the "Commit
Batch Size" to 1 so that I can tell what would be the last record to
commit
successfully and look at the next record in the source file to find the
caused error one. Is there any better way of doing this?

Thanks
Ed




Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.