SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Large flat file exception issue


Large flat file exception issue

Author
Message
Data9
Data9
SSC-Enthusiastic
SSC-Enthusiastic (115 reputation)SSC-Enthusiastic (115 reputation)SSC-Enthusiastic (115 reputation)SSC-Enthusiastic (115 reputation)SSC-Enthusiastic (115 reputation)SSC-Enthusiastic (115 reputation)SSC-Enthusiastic (115 reputation)SSC-Enthusiastic (115 reputation)

Group: General Forum Members
Points: 115 Visits: 111
Hi All, I have a script task and I used Visual Basic 2010 code to change the delimiters inside a flat file (.txt) and write to another file.

This is working perfect with a file has 2 million rows and 800 MB in size. But when I have a flat file has 19 million rows and which is of 4 GB file size is throwing the below error.

Error: Exception has been thrown by the target of an invocation.

Suggestions are greatly appreciated
Thank you
Tom Van Harpen
Tom Van Harpen
Hall of Fame
Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)

Group: General Forum Members
Points: 3862 Visits: 1132
First try to get more error info, maybe turn on some logging to get the low level message.

How are you processing the file? What does it mean that you are changing the delimiters how exactly are you doing this? If you could post some code regarding the opening and reading of the file that may help, also for a larger file you may need to read it in chunks.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search