SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


bcpin


bcpin

Author
Message
faizal.h
faizal.h
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 5
Hi,
Please help me in bcp in the below data structure to the data base ...

feb2009 SMART/SMART SMART/SMART 89810000005 USD 13224.18 feb 2009 GCN & Telex MIS ChargeOut OUCGB2833 OUCZ14040
feb2009 SMART/SMART SMART/SMART 89810000003 USD 18.75 feb 2009 GCN & Telex MIS ChargeOut OUCGB2833 OUCZ14040
feb2009 SMART/SMART SMART/SMART 89810000004 USD 71.51 feb 2009 GCN & Telex MIS ChargeOut OUCGB2833 OUCZP1073
feb2009 SMART/SMART SMART/SMART 89810000005 USD 1358.61 feb 2009 GCN & Telex MIS ChargeOut OUCGB2833 OUCZP1073
feb2009 USDDAUSD/0010990765 US00001/0000000007 89810000001 USD 1.80 feb 2009 GCN & Telex Cash ChargeOut GB00002/0000GB2833
feb2009 USDDAUSD/0010990765 US00001/0000000364 89810000001 USD 25.67 feb 2009 GCN & Telex Cash ChargeOut GB00002/0000GB2833
feb2009 USDDAUSD/0010990765 US00001/0000000507 89810000001 USD 10.00 feb 2009 GCN & Telex Cash ChargeOut GB00002/0000GB2833
feb2009 USDDAUSD/0010990765 US00001/0000000676 89810000001 USD 0.57 feb 2009 GCN & Telex Cash ChargeOut GB00002/0000GB2833
feb2009 USDDAUSD/0010990765 US00001/0000000679 89810000001 USD 13782.07 feb 2009 GCN & Telex Cash ChargeOut GB00002/0000GB2833
feb2009 USDDAUSD/0010990765 US00001/0000000679 89810000002 USD 51.38 feb 2009 GCN & Telex Cash ChargeOut GB00002/0000GB2833


The column names of the table should be ..

1) Billing Cycle
2) SVC Provider Org Code
3) Customer Org Code
4) Sub Product
5) Transaction Currency Code
6) Actual Cost
7) Volume
8) Invoice Description
9) Other SVC Provider Org Code
10) Other Cust Org Code
11) Additional Info

Thanks in advance,
Faizal Ahmed.H
Jan Van der Eecken
Jan Van der Eecken
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2420 Visits: 6494
Hi Faizal,

In order to assist you, it would be most helpful if you could provide a DDL script that creates your table, as well as a sample input file (as an attachment) that contains the data you listed. From your post it is totally unclear what the delimiters between the columns are or even where the delimiters are supposed to be. By the way, why are you storing dates as "feb2009", i.e. as a string? Is that how the data comes in from an external system? I sincerely hope you don't store it in SQL in that format. Will be a futile attempt trying to extract this data in a decently sorted fashion once it is on the server. OK, it can be done, but performance will suck.

Regards,
Jan

--------------------------------------------------------------------------
A little knowledge is a dangerous thing (Alexander Pope)

In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search