473,406 Members | 2,619 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,406 software developers and data experts.

modifying my db

hey all,

i have an Access Database with about 43,000 records in it. I need to take 2
or 3 columns and modify them and update the database.

currently what i'm doing is loading all into a dataset and making changes
and pushing it back up to the database. it seems kind of a long process about
20 min.

am i better off using Access Query or SQL Server query to modify the data or
is there a faster way in vb.net? All, i'm doing is formatting date fields and
concatenating 1 other field.

Please advise.

Thanks,
rodchar
Nov 21 '05 #1
4 941
rodchar,

That seems to be a long time to process those changes. Do you have a
primary key assigned to the table or any other indices?

Joseph

Nov 21 '05 #2
yes i do have a primary key, but isn't 43,000 records a lot? Especially doing
a database update thru a DataSet?

"Joseph Ferris" wrote:
rodchar,

That seems to be a long time to process those changes. Do you have a
primary key assigned to the table or any other indices?

Joseph

Nov 21 '05 #3
Hi rodchar,

Have all the rows on your dataset actually changed?
If not you can get a new dataset based on the existing one, with only the
rows that have changed using the
ds.GetChanges method. It works in conjunction with another method called
AcceptChanges() and it returns
a copy of the changes from your DataSet that you can perform actions on.

Good Luck.
Graham Parker.

"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:B3**********************************@microsof t.com...
yes i do have a primary key, but isn't 43,000 records a lot? Especially
doing
a database update thru a DataSet?

"Joseph Ferris" wrote:
rodchar,

That seems to be a long time to process those changes. Do you have a
primary key assigned to the table or any other indices?

Joseph

Nov 21 '05 #4
yes, all rows have a date that will need to be converted from *ISO format to
*USA.
"Graham Parker [MVP]" wrote:
Hi rodchar,

Have all the rows on your dataset actually changed?
If not you can get a new dataset based on the existing one, with only the
rows that have changed using the
ds.GetChanges method. It works in conjunction with another method called
AcceptChanges() and it returns
a copy of the changes from your DataSet that you can perform actions on.

Good Luck.
Graham Parker.

"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:B3**********************************@microsof t.com...
yes i do have a primary key, but isn't 43,000 records a lot? Especially
doing
a database update thru a DataSet?

"Joseph Ferris" wrote:
rodchar,

That seems to be a long time to process those changes. Do you have a
primary key assigned to the table or any other indices?

Joseph


Nov 21 '05 #5

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

Similar topics

16
by: Japcuh | last post by:
How do you write self modifying code in Java? Japcuh (Just Another Perl C Unix Hacker) http://www.catb.org/~esr/faq/hacker-howto.htm#what_is ..0. ...0 000
15
by: Paul Paterson | last post by:
I am trying to find a way to mimic by-reference argument passing for immutables in Python. I need to do this because I am writing an automated VB to Python converter. Here's an example of the VB...
2
by: Jean-S?bastien Bolduc | last post by:
I'm afraid this is a silly question, to which I know the answer already. But let me ask anyway... In Python, is there a way to modify a builtin type's methods? for instance, modifying...
6
by: Peter Ballard | last post by:
Whew. I hope that title is descriptive! Hi all, The python tutorial tells me "It is not safe to modify the sequence being iterated over in the loop". But what if my list elements are mutable,...
6
by: qwweeeit | last post by:
Hi all, when I was young I programmed in an interpreted language that allowed to modify itself. Also Python can (writing and running a module, in-line): fNew =open("newModule.py",'w') lNew=...
12
by: pvinodhkumar | last post by:
1) char* p = "Plato"; p = 'r'; // runtime error 2) char c = "Plato"; c = 'i';// ok.Why no runtime here?Why is the contradiction? cout << c << endl;
1
by: A.M-SG | last post by:
Hi, Can I view/modify SOAP message at the client proxy side without using soap extensions? Thank you,
13
by: Robin Becker | last post by:
When young I was warned repeatedly by more knowledgeable folk that self modifying code was dangerous. Is the following idiom dangerous or unpythonic? def func(a): global func, data data =...
56
by: subramanian100in | last post by:
The standard allows that we can copy strings onto arg, arg, etc. Why is it allowed ? What can be the maximum length of such a string that is copied ?
5
by: IUnknown | last post by:
Ok, we are all aware of the situation where modifying the folder structure (adding files, folders, deleting files, etc) will result in ASP.NET triggering a recompilation/restart of the application....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
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...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...

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.