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 3 1705
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*******@gmai l.comwrote in message
news:11******** *************@o 11g2000prd.goog legroups.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
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*******@gmai l.comwrote in message
news:11******** *************@o 11g2000prd.goog legroups.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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 first
name, last name, email, etc. The data are then sent to a PHP script
(reg.php). The data are then inserted into a table (reg) in MS SQL
server. I have declared the variables like this:
if (!(isset($_POST))) {
$FirstName = "" ;
|
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!
-----------------------------------------------------------------
I created a sign-up sheet (reg.html) where people fill in their first
name, last name, email, etc. The data are then sent to a PHP script
(reg.php). The data are then inserted into a table (reg) in MS SQL
server. I have declared the...
|
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 AddMinimunWageStipen(string payrollid,double amount)
{
System.Data.SqlClient.SqlConnection cn = null;
System.Data.SqlClient.SqlCommand cm = null;
|
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 & "')"
|
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 date that is supplied to the SP as a parameter.
The SP is usually a lengthy process (it takes at least 30 mins).
The problem is that SQL server 2000 Dev Edition doesn't allow me to
insert new invoices that are "younger", while the SP is executing....
| |
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 noticed that th eaccess plan for the 2 situations is quite
different. For the case where the trigger is in place, the optimizer
applies 2 extra residual predicates.
Can anybody explain where the differences come from? Also, for real
life situations,...
|
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 it has been troublesome to
say the least.
My ASP.NET script is supposed to execute an INSERT INTO statement in
order to add a user to the database. Here is a sample:
|
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 radiolistbuton. I can't get the variable to pass through and insert into the db. It's an oracle 10g express db and the insert statement works when a normal string is netered but not with a variable and ideas?
OracleTransaction txn =...
|
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 insert statement within this. i know people will come back with different merge or whatever, but i must be able to do this within a case statement unfortunately.
example
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |