If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > text file feed with alternating master and detail rows

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-18-04, 18:14
Fly Girl Fly Girl is offline
Registered User
 
Join Date: Jun 2003
Location: Longmont, CO
Posts: 258
text file feed with alternating master and detail rows

SQL Server 2000

Help! Surely this has happened to others before me. A new customer wants to send updates in a fixed-width txt file in which master and detail rows alternate.

How do you do this?

Do you
1) Painfully muck around with 100,000 rows in the .txt file first--split it into 2 files, one for master records and one for detail records and then process?
2) Is there a way to feed it into 2 tables where rows starting with x go to one table and rows starting with y go to another?

The plan was to use a fast and dirty DTS package to shove this stuff into a table but I'd like some advice on how to proceed.

Thanks for any suggestions!
Reply With Quote
  #2 (permalink)  
Old 02-19-04, 08:53
smithhayward smithhayward is offline
Registered User
 
Join Date: Apr 2003
Location: Edison, NJ / Oakland, NJ (Work)
Posts: 32
Wrong Topic

You'll probably get a better answer in the MS SQL Forum, this Forum is for the Open Source RDBMS mySQL. Hope that helps.
__________________
-----------------------------------
Smith Hayward
-----------------------------------
Reply With Quote
  #3 (permalink)  
Old 02-19-04, 09:45
Fly Girl Fly Girl is offline
Registered User
 
Join Date: Jun 2003
Location: Longmont, CO
Posts: 258
Sorry!

Thanks! I'll post there!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On