473,419 Members | 4,250 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

How to skip the bad record and continue the loading in SQL loader?

Hi,

I am trying to load data file into database in sql loader. How to skip the bad record alone and continue with loading?

For eg. I am trying to load data file which has 100 records.The 50th record encounters an error.At present only 49 records gets loaded and it stops from 50th record. I want first 49 records as well as 51st to 100th record to be loaded at the same time and 50th records should be written in the bad file. how to skip the 50th record alone and continue the same loading process from 51st record?

Please guide me.
Reply asap.

Thanks,

Flora
reply report
Sep 22 '10 #1
3 3327
ck9663
2,878 Expert 2GB
Define "bad record"...

What are you using to load your data?

~~ CK
Sep 22 '10 #2
Thanks for the reply CK.

I am using SQL Loader. Loading the data file using control file.
Bad record means it just a data error. that particular column is declared as number in database whereas it character in the data file.

How to skip that particular record and continue loading the remaining data?
Sep 23 '10 #3
ck9663
2,878 Expert 2GB
What do you mean by "SQL Loader"? Are you using a third-party app? Are you using the Import feature of SSMS? Or BCP? or BULK INSERT? SSIS perhaps? All those can be called SQL Loader...

The best way to handle your case is to import everything as NVARCHAR. Then you can do whatever you want after. That way, no other conversion will be done. You might also consider using format files for further formatting.

If it's an ETL (Extract, Transform, Load), SSIS can handle much of your requirement. Although am old school and will still go to T-SQL, it takes more work, it's faster and you can have more control on your code and how your data will move...

Good Luck!!!

~~ CK
Sep 23 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Hari Om | last post by:
Here are the details of my error log files: I execute the command and get following message at console: ---------------------------------------------------------------------- ../sqlldr...
1
by: Rakesh Patel | last post by:
Hi All, I want to load XML file data into database. There is seperate XML file for each record (2000 record) and I want to load these records into a single Oracle database table using...
1
by: Mario Horvat | last post by:
Does Oracle Loader tool version 8 support importing dbase (dbf) files?
11
by: JS | last post by:
Dear Group, I have a webpage of small images. At the bottom is a Javascript function. If someone scrolls impatiently to the function link, when the action is complete the html does not continue...
4
by: Adrian MacNair | last post by:
Hi, I created an image gallery which displays 63 images in a slideshow. The problem is that the show was slow because each image loaded one at a time during the show. No problem right? I just...
5
by: JonS. | last post by:
Hi, I posted this article ( http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.languages.csharp&mid=0ee9781a-78f7-4398-a0ef-eeb195eccaea&sloc=en-us ) last week, and...
0
by: dioscuroi | last post by:
When I call OCI (Oracle Call Interface) functions in Debug mode of VC+ 7.0, it takes too much time to load oracle debug symbols, and finall failed. Error messages are printed in output window, just...
9
by: igor.tatarinov | last post by:
Hi, I am pretty new to Python and trying to use it for a relatively simple problem of loading a 5 million line text file and converting it into a few binary files. The text file has a fixed format...
0
by: d6e6a6t6h | last post by:
Hey, first of all sorry my English is bad! second this is action script 2.0 After my loader for my main page is done loading it displays my default backround art, but my default home page content...
1
by: mirajsen | last post by:
Hello, I am trying to enter records to a table through a Data Access page, which is linked to the table. When I open the page, it is showing the first record which is in the table. Is there...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.