Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Creating a "flat file"

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-07-11 : 11:19:13
Ailsa writes "How do you create a "flat file" (I'm not sure of the correct term)
eg: Existing data
IDNo ReceiptNo Date Description Amount
1234 10053689 01/07/2005 General $10.00
1234 10069468 01/08/2005 Cataract $20.00
1234 10078942 01/09/2005 General $10.00

Want it to be formatted this in 1 row:
FieldNames:
IDNo Receipt1 Date1 Description1 Amount1 Receipt2 Date2 Description2 Amount2 Receipt3 Date3 Desription3 Amount3

Data:
1234 10053689 01/07/2005 General $10.00 10069468 01/08/2005 Cataract $20.00 10078942 01/09/2005 General $10.00"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-07-12 : 02:54:47
Refer this
http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx?Pending=true

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -