Best Way to Update Table?
From: Rachan Terrell (web24by7_at_hotmail.com)
Date: 04/09/04
- Next message: Vishal Parkar: "Re: Delete higher price record, if there is one."
- Previous message: Hari: "Re: Drop User Command"
- In reply to: chris: "Best Way to Update Table?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 9 Apr 2004 11:08:11 -0700
Chris,
Use BCP to extact the data to a text file then write perl
program to update the BCP file. Then BCP it back.
Otherwise, brake the table into 4 tables and then process
it in 4 differant servers and then merge them back.
Hope this help...if not send me an email.
GoodLuck,
Rachan
>-----Original Message-----
>Hello,
>
>I have a large table of data. 120million rows, 250
fields
>in each row. The important fields in the table for the
>update are phone (phone number) and phone_pander_flag
>(flag the is Y or N indicating if the person wants to be
>called or not).
>
>The data used to updated this large table is in a second
>table that is basically just a bunch of phone numbers.
>There are 64million phone numbers in this list.
>
>What I want to do is for every phone number in the
update
>table (the 64million numbers), I want to check the main
>table (the 120million record table) for that phone
number
>and if there is a match, switch the phone_pander_flag to
>a 'Y'.
>
>So far, the fastest I've gotten this to run is 50hrs.
>There must be a faster and better way.
>
>Let me know.
>
>Chris.
>.
>
- Next message: Vishal Parkar: "Re: Delete higher price record, if there is one."
- Previous message: Hari: "Re: Drop User Command"
- In reply to: chris: "Best Way to Update Table?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
- Re: Regarding Timestamp
... I have a table with a timestamp field that gets updated by the DB engine. ...
The data itself is a small binary column with exactly the data you see in the BCP file.
... It is put that way in the BCP file, and expected to be that way by BCP when it goes
back in to the DBMS via BCP. ... (comp.databases.sybase) - create a table prior to bcping data
... bcp out data from our reporting server ... Move bcp file to our archival
server ... (microsoft.public.sqlserver.server) - Re: Lookup specific string in all-tables
... trick. ... regarding to your valuable solution. ... You can bcp
the rows out of the table, no matter how big it is AFAIK. ... The bcp file for a larger
table might be ... (comp.databases.sybase) - Re: Problem directing BCP Error to Error file
... Though the bcp in works fine but the error file is not being created ... Why
are you asking questions about bcp in a Perl newsgroup? ... helped with your Perl
problems a week ago, but it seems the problem you ... (comp.lang.perl.misc) - Re: BCP Utility
... pre-processor in Perl or so which adds the missing columns, before BCP
will ... (microsoft.public.sqlserver.programming)