Stored Procedure for Import Data

Completed Posted Dec 7, 2005 Paid on delivery
Completed Paid on delivery

Hello,

I have a .txt file (called “Import_File??) that has pipe-delimited values and I need to import this data into an existing SQL Server table (which already contains data). This is complicated because in this .txt file are some records that do have a value for the primary key (which is named “ID??).

For those records in the pipe-delimited file where the “ID?? field is NOT null, the “last_updated?? field then needs to be compared with the corresponding record in the actual table to determine whether or not the corresponding record from the pipe-delimited file is more recent.

If the corresponding record in the pipe-delimited file is more recent, then the record in the existing table needs to be updated with the data from the pipe-delimited file.

For records in the pipe-delimited file where the “ID?? field is null, those records need to be inserted into the table as new records.

In order to do accomplish these I need the coder to design a stored procedure that can follow the above logic.

I have supplied three files:

1. Create_Table: A SQL script which will create the test table

2. Original_Data: The original data to pre-populate the table

3. Import_File: The data that comes from another database

Please let me know if you need anything else from me in order to develop a solution. Once the solution is developed for this I have several more that the coder can work on if he or she is interested.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

SQL Server 2000

Windows Server 2000/2003

Engineering MySQL PHP Software Architecture Software Testing SQL

Project ID: #3142466

About the project

14 proposals Remote project Active Dec 8, 2005

Awarded to:

gkalish

See private message.

$42.5 USD in 4 days
(261 Reviews)
6.5

14 freelancers are bidding on average $35 for this job

loyanich

See private message.

$42.5 USD in 4 days
(327 Reviews)
7.6
atanughosh76

See private message.

$42.5 USD in 4 days
(124 Reviews)
7.5
codernextvw

See private message.

$34 USD in 4 days
(58 Reviews)
5.5
sokolove

See private message.

$42.5 USD in 4 days
(37 Reviews)
5.0
adex08

See private message.

$42.5 USD in 4 days
(6 Reviews)
4.1
firejumpvw

See private message.

$34 USD in 4 days
(54 Reviews)
4.1
captainjinx

See private message.

$17 USD in 4 days
(3 Reviews)
2.7
sanworksvw

See private message.

$29.75 USD in 4 days
(11 Reviews)
3.5
juanleonsolis

See private message.

$42.5 USD in 4 days
(10 Reviews)
3.0
darkokvw

See private message.

$34 USD in 4 days
(0 Reviews)
0.0
myinformati

See private message.

$32.3 USD in 4 days
(3 Reviews)
0.0
microbsoftware

See private message.

$25.5 USD in 4 days
(0 Reviews)
0.0
yudhistiravw

See private message.

$33.15 USD in 4 days
(0 Reviews)
0.0