473,385 Members | 2,004 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.

very slow updata after column added

Rod

I have a dataset which originally came from an Access table.

I then add a column using code to the table in the dataset and fill it with
data. (About 1000 records) . The column is not in the original Access table.

all works fine except

when I come to update the Access table (using the data adapter created by
the wizard) it takes 40 seconds or more.

I don't want the data in that column so I tried removing it before doing the
update, but it made no difference.

I am sure if I added the column to the Access table all would work fine, but
as I am learning I would like to do it without fudges!
many thanks in advance

Rod
Nov 22 '05 #1
2 1196
Rod,

I dont know your program sequence, however I think you start with adding
that column.
Can you try it with directly after the adding of that column.

\\\
mydatatable.AcceptChanges for C# with than ();
///
For this kind of purposes that acceptchanges is made it set all rowstates to
unchanged.

I never tried it, so I am curious for the result?

I hope it helps

Cor
Nov 22 '05 #2
Rod
10 out of 10!
It worked.

I tried an experiment (without added columns or AcceptChanges) that changed
all the data in one column, then updated the Access table.
Again it was very slow. Is this normal? A 1000 records is a very small
database.

thanks for your help, now I'll have my combo box sorted out.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
Rod,

I dont know your program sequence, however I think you start with adding
that column.
Can you try it with directly after the adding of that column.

\\\
mydatatable.AcceptChanges for C# with than ();
///
For this kind of purposes that acceptchanges is made it set all rowstates to unchanged.

I never tried it, so I am curious for the result?

I hope it helps

Cor

Nov 22 '05 #3

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

Similar topics

2
by: Benoit Le Goff | last post by:
Hello. I test some query on sql server 2000 (sp2 on OS windows 2000) and i want to know why a simple query like this : select * from Table Where Column like '%value' is more slow on 2000 than...
2
by: Rod | last post by:
I have a dataset which originally came from an Access table. I then add a column using code to the table in the dataset and fill it with data. (About 1000 records) . The column is not in the...
11
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time...
8
by: Rich | last post by:
My table looks like this: char(150) HTTP_REF, char(250) HTTP_USER, char(150) REMOTE_ADDR, char(150) REMOTE_HOST, char(150) URL, smalldatetime TIME_STAMP There are no indexes on this table...
12
by: Albert Grennock | last post by:
Hi, Hope this is the right forum to ask in. Anyway in IE I go to this site and I click on computing on the left hand menu and it takes from about 6 to 15 seconds to open the submenu. I then...
4
by: cefrancke | last post by:
Are there any ways to speed up a Cumulative sum in a query or perhaps another faster way to have a cumulative sum column (call a vba function?). For example, I want to sum up all values under...
6
by: Aaron Smith | last post by:
Ok. I have a dataset that has multiple tables in it. In one of the child tables, I have a column that I added to the DataSet (Not in the DataSource). This column does not need to be stored in the...
2
by: dfdavis.mtu | last post by:
I have a table that I dynamically fill with data from a database for medical companies to be able to determine if their patients meet certain criteria. However they want a fixed header for it so...
0
by: zamba | last post by:
hi im new with xsl and i have to process a xsl with a lot of xml (about 50.000) the transform is slow ..and i want to optimize my xsl . here is the example so if anybody could give some advices to...
1
by: pitjpz | last post by:
We have moved our Database to another server. The server it was on used SQL 4 and the new one its on now uses SQL5 the only problem we can find is that when you attempt to delete a record from...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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: 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
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...

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.