BCP Fails to Parse Format File If It Has White Space in Column Name
From: Steve D?sy (sdesy_at_paradox.ca)
Date: 03/10/04
- Next message: Robert Batt: "Update a date"
- Previous message: David Browne: "Re: sp_columns thread safe?"
- Next in thread: Erland Sommarskog: "Re: BCP Fails to Parse Format File If It Has White Space in Column Name"
- Reply: Erland Sommarskog: "Re: BCP Fails to Parse Format File If It Has White Space in Column Name"
- Messages sorted by: [ date ] [ thread ]
Date: 10 Mar 2004 06:24:38 -0800
Microsoft acknowledge that there's a problem when BCP parse a format
file that as white space in column name. There workaround is to
manually edit the format file to omit all white space characters from
the last column in the format file (that is, characters 0x09-0x0D,
0x20).
This is my format file.
8.0
21
1 SQLINT 1 4 "\t" 1
Default ID ""
2 SQLNCHAR 2 100 "\t" 2
0 SQL_Latin1_General_CP1_CI_AS
3 SQLNCHAR 2 100 "\t" 3
1 SQL_Latin1_General_CP1_CI_AS
4 SQLNCHAR 2 100 "\t" 4
2 SQL_Latin1_General_CP1_CI_AS
5 SQLNCHAR 2 100 "\t" 5
3 SQL_Latin1_General_CP1_CI_AS
6 SQLNCHAR 2 100 "\t" 6
4 SQL_Latin1_General_CP1_CI_AS
7 SQLNCHAR 2 100 "\t" 7
5 SQL_Latin1_General_CP1_CI_AS
8 SQLNCHAR 2 100 "\t" 8
6 SQL_Latin1_General_CP1_CI_AS
9 SQLNCHAR 2 100 "\t" 9
7 SQL_Latin1_General_CP1_CI_AS
10 SQLNCHAR 2 100 "\t" 10
8 SQL_Latin1_General_CP1_CI_AS
11 SQLNCHAR 2 100 "\t" 11
9 SQL_Latin1_General_CP1_CI_AS
12 SQLNCHAR 2 100 "\t" 12
10 SQL_Latin1_General_CP1_CI_AS
13 SQLNCHAR 2 100 "\t" 13
11 SQL_Latin1_General_CP1_CI_AS
14 SQLNCHAR 2 100 "\t" 14
12 SQL_Latin1_General_CP1_CI_AS
15 SQLNCHAR 2 100 "\t" 15
13 SQL_Latin1_General_CP1_CI_AS
16 SQLNCHAR 2 100 "\t" 16
14 SQL_Latin1_General_CP1_CI_AS
17 SQLNCHAR 2 100 "\t" 17
15 SQL_Latin1_General_CP1_CI_AS
18 SQLNCHAR 2 100 "\t" 18
16 SQL_Latin1_General_CP1_CI_AS
19 SQLNCHAR 2 100 "\t" 19
17 SQL_Latin1_General_CP1_CI_AS
20 SQLNCHAR 2 100 "\t" 20
18 SQL_Latin1_General_CP1_CI_AS
21 SQLNCHAR 2 100 "\r\n" 21
19 SQL_Latin1_General_CP1_CI_AS
Does anyone as a solution?
Thanks
Steve
- Next message: Robert Batt: "Update a date"
- Previous message: David Browne: "Re: sp_columns thread safe?"
- Next in thread: Erland Sommarskog: "Re: BCP Fails to Parse Format File If It Has White Space in Column Name"
- Reply: Erland Sommarskog: "Re: BCP Fails to Parse Format File If It Has White Space in Column Name"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|