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

Performance issue concerning about "insert" statement on Pervasive 2000i

Hi All

I am facing a very strange "problem" on the captioned issue, I hope I
can explain it clearly.

Actually I am developing an interface (using VB.net) which read
records from a file and then import them to the database. The
performance of the interface was about 20000 records/0.5 hrs. However,
if I query the table using "SELECT COUNT(*) FROM TABLE" from the SQL
Data Manager of Pervasive Control Center during the importation
process, the program will speed up its speed to 30000 records/4mins.
Very strange right? I wonder if someone has some experience on this
issue...

Many Thanks
KC

Jun 14 '07 #1
3 1681
KC,

You would be better off posting this in a database newsgroup. It doesn't
sound like you have a VB.NET question.

However, you may want to look at what triggers and indexes you may have on
the table you are inserting into.

Hope this helps,
Steve

<01*******@gmail.comwrote in message
news:11*********************@o11g2000prd.googlegro ups.com...
Hi All

I am facing a very strange "problem" on the captioned issue, I hope I
can explain it clearly.

Actually I am developing an interface (using VB.net) which read
records from a file and then import them to the database. The
performance of the interface was about 20000 records/0.5 hrs. However,
if I query the table using "SELECT COUNT(*) FROM TABLE" from the SQL
Data Manager of Pervasive Control Center during the importation
process, the program will speed up its speed to 30000 records/4mins.
Very strange right? I wonder if someone has some experience on this
issue...

Many Thanks
KC

Jun 15 '07 #2
Take a look at bcp utility, which must exist for your db, or at SqlBulkCopy
class, which are better suitable for bulk inserts

Alex
<01*******@gmail.comwrote in message
news:11*********************@o11g2000prd.googlegro ups.com...
Hi All

I am facing a very strange "problem" on the captioned issue, I hope I
can explain it clearly.

Actually I am developing an interface (using VB.net) which read
records from a file and then import them to the database. The
performance of the interface was about 20000 records/0.5 hrs. However,
if I query the table using "SELECT COUNT(*) FROM TABLE" from the SQL
Data Manager of Pervasive Control Center during the importation
process, the program will speed up its speed to 30000 records/4mins.
Very strange right? I wonder if someone has some experience on this
issue...

Many Thanks
KC

Jun 15 '07 #3
Thanks for your reply

However for some reasons we cannot deploy .net 2.0 on the client's PC,
and I cannot find any source regarding to bcp utility for pervasive
2000i...
I will try re-posting the question on the database forum, but I
believe it sounds like a VB problem more than a database problem..
HTH

Jun 16 '07 #4

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

Similar topics

2
by: newbie_mw | last post by:
Hi, I need urgent help with a novice problem. I would appreciate any advice, suggestions... Thanks a lot in advance! Here it is: I created a sign-up sheet (reg.html) where people fill in their...
1
by: newbie_mw | last post by:
Seems my post was buried in more cries for help :-) I will try again. It's probably a very novice question so please take a look! Thanks!...
10
by: Mike | last post by:
I know this sounds strange but I am at a loss. I am calling a simple funtion that opens a connection to a SQL Server 2000 database and executes an Insert Statement. private void...
6
by: Manuel Canas | last post by:
Hello there, This is my SQL Insert Statement to insert a single into a table on a database; INSERT tb_test VALUES(' & _ txtTest1.Text & "' " & _ txtTest2.Text & "' " & _ txtPrice.Text & "')"
8
by: nano2k | last post by:
Hi Shortly, I keep invoices in a table. Occasionally, someone will fire the execution of a stored procedure (SP) that performs several UPDATEs against (potentially) all invoices OLDER than a...
1
by: filip1150 | last post by:
I'm trying to find if there is any performance diference between explicitly using a sequence in the insert statement to generate values for a column and doing this in an insert trigger. I...
6
by: ewpatton | last post by:
Good day, I've been trying to work with SQL and an Access database in order to handle custom user profiles. I haven't had any trouble reading from my database, but inserting new entries into...
2
by: btuisee | last post by:
I'm having an issue getting a variable to pass through to an oracle database. I have an insert statment and one of the values are a variable called q1. Q1 is a variable that gets it's value from a...
2
by: ianmcdonagh | last post by:
Hi folks, I'm looking to pick everyone's brains. I have a cursor, with over 200 columns in the select. I am using a case in one of the columns which I'm retrieving, and want to issue an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.