728x90
If u created the table like below:
CREATE TABLE [dbo].[test](
[test_ID] [char](10) COLLATE Korean_Wansung_CI_AS NOT NULL,
[test_TYPE] [char](3) COLLATE Korean_Wansung_CI_AS NULL,
[test_NAME] [varchar](30) COLLATE Korean_Wansung_CI_AS NULL,
[X] [float] NULL,
[Y] [float] NULL,
)
and then u don't have FORMAT file...
bcp will create it automatically after ensure u... like below..
9.0
5
1 SQLCHAR 0 10 "," 1 test_ID Korean_Wansung_CI_AS
2 SQLCHAR 0 3 "," 2 test_TYPE Korean_Wansung_CI_AS
3 SQLCHAR 0 30 "," 3 test_NAME Korean_Wansung_CI_AS
4 SQLFLT8 1 8 "," 4 X ""
5 SQLFLT8 1 8 "\r\n" 5 Y ""
but it returns WRONG result..
below format is better..
9.0
5
1 SQLCHAR 0 20 "," 1 test_ID Korean_Wansung_CI_AS
2 SQLCHAR 0 6 "," 2 test_TYPE Korean_Wansung_CI_AS
3 SQLCHAR 0 60 "," 3 test_NAME Korean_Wansung_CI_AS
4 SQLCHAR 0 30 "," 4 X ""
5 SQLCHAR 0 30 "\r\n" 5 Y ""
728x90
'Trouble Shooting' 카테고리의 다른 글
libpulse-dev install error on raspbian jessie (0) | 2017.12.21 |
---|---|
Error: spawn rec ENOENT (0) | 2017.09.04 |
ubuntu apt-get update error (0) | 2017.04.19 |
unable to load OCI library:libaio.so.1: cannot open shared object file: No such file or directory (0) | 2017.04.18 |
swprintf vs wsprintf (0) | 2009.07.31 |