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.
| Author |
Topic |
|
varathan
Starting Member
1 Post |
Posted - 2010-12-29 : 04:23:38
|
| Hi Guys, I have one problem while doing bulk insert the Japanees Character Showing Like this ???.I am using format file please see the my format file below.(I think have to change formate file collation) Please urgent.9.031 SQLCHAR 0 2000 “\t” 1 MarketPlace ""2 SQLCHAR 0 1000 “\t” 2 Title ""3 SQLCHAR 0 2000 “\n” 3 Address ""SELECT *FROM OPENROWSET(BULK '\\MD0001\SharedDocs\Varadarajan\JP_DataFile.txt',FORMATFILE = '\\MD0001\SharedDocs\Varadarajan\AmzJP.fmt') AS t1 I want result Like this--------------MarketPlace Title AddressAmazonUK Test Title for UK UKAmazonUS Test Title for US USAmazonJP ????? ??But Showing -----------MarketPlace Title AddressAmazonUK Test Title for UK UKAmazonUS Test Title for US USAmazonJP ???? ??.Varathan |
|
|
nigelrivett
Master Smack Fu Yak Hacker
3385 Posts |
Posted - 2010-12-29 : 04:41:07
|
| Format file is like8.041 SQLCHAR 0 0 "," 1 i Latin1_General_CI_AS2 SQLCHAR 0 0 "," 2 s Latin1_General_CI_AS3 SQLCHAR 0 0 "," 3 t Latin1_General_CI_AS4 SQLCHAR 0 0 "\r\n" 4 u Latin1_General_CI_ASTry changing the collation to suit your data in your format file.Note - if it's UTF8 then it's no longer supported and you probably need to use SSIS.==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|