473,385 Members | 1,752 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,385 software developers and data experts.

Bulk data transfer from csv file to Pervasive SQL (using .net framework 1.1)

Hi All

I have created an interface to insert 70000 records from a csv file to
the Pervasive database one by one using ordinary sql statement, but
the performance is not satisfactory (it takes about 2 hrs to complete
the job). I just wonder if someone has experience on such case and can
share how to improve the performance?

Thanks
KC

Jun 21 '07 #1
3 2225
Probably by bringing the file first to the server and process it from there.

Cor

<01*******@gmail.comschreef in bericht
news:11**********************@n15g2000prd.googlegr oups.com...
Hi All

I have created an interface to insert 70000 records from a csv file to
the Pervasive database one by one using ordinary sql statement, but
the performance is not satisfactory (it takes about 2 hrs to complete
the job). I just wonder if someone has experience on such case and can
share how to improve the performance?

Thanks
KC

Jun 21 '07 #2
Try using SqlBulkCopy from the framework.
Its pretty simple. Set up your source, destination, batch size, and map
columns if needed. Its the fastest you're going to get from .net. You could
also try creating an SSIS package and executing that from .net.

- Hutch
"01*******@gmail.com" wrote:
Hi All

I have created an interface to insert 70000 records from a csv file to
the Pervasive database one by one using ordinary sql statement, but
the performance is not satisfactory (it takes about 2 hrs to complete
the job). I just wonder if someone has experience on such case and can
share how to improve the performance?

Thanks
KC

Jun 21 '07 #3
Hutch,

The SqlBulkCopy class can be used to write data only to SQL Server tables.

Kerry Moorman
"Hutch" wrote:
Try using SqlBulkCopy from the framework.
Its pretty simple. Set up your source, destination, batch size, and map
columns if needed. Its the fastest you're going to get from .net. You could
also try creating an SSIS package and executing that from .net.

- Hutch
"01*******@gmail.com" wrote:
Hi All

I have created an interface to insert 70000 records from a csv file to
the Pervasive database one by one using ordinary sql statement, but
the performance is not satisfactory (it takes about 2 hrs to complete
the job). I just wonder if someone has experience on such case and can
share how to improve the performance?

Thanks
KC
Jun 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: php newbie | last post by:
Hello, I am trying to load a simple tab-delimited data file to SQL Server. I created a format file to go with it, since the data file differs from the destination table in number of columns. ...
6
by: pk | last post by:
Sorry for the piece-by-piece nature of this post, I moved it from a dormant group to this one and it was 3 separate posts in the other group. Anyway... I'm trying to bulk insert a text file of...
16
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums...
1
by: SteveH | last post by:
Attempting to use BULK INSERT to transfer data from a csv to a table in a dbo on an instance of sqlServer (MSDE). I’m very new at both sql server & vb.net. I keep getting an error Unexpected...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
2
by: qwerty123 | last post by:
Hi folks: We have a system requirement where a large amount of data needs to be transferred between two systems. The main system is a DB2 8.x running on a pSeries (AIX) and the archive database...
0
by: jan82 | last post by:
I receive the following error when trying to connect to a Pervasive database through ODBC: ERROR No available transport protocol for the Pervasive Network Services Layer. ERROR Driver's...
0
by: jan82 | last post by:
I receive the following error when trying to connect to a Pervasive database through ODBC: ERROR No available transport protocol for the Pervasive Network Services Layer. ERROR Driver's...
5
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a app that uses several membership/role providers. I can list these Providers with the code: Dim rootWebConfig1 As Configuration rootWebConfig1 =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.