Getting bcp.exe to escape terminators

后端 未结 4 1936
轮回少年
轮回少年 2021-01-17 14:41

I need to export some data using SQL Server 2000\'s BCP utility. Sometimes my data contains characters, such as \\t and \\n, that I need to use as column and row terminator

4条回答
  •  天命终不由人
    2021-01-17 15:20

    I have the same problem and searched a long time to find a solution. I found this one from a BCP master and it sounds reasonable. Perhaps you want to try it as well.

    Possible solution: http://groups.google.co.uk/group/microsoft.public.sqlserver.tools/tree/browse_frm/thread/f1ee12cba3079189/ef9094123901fe26?rnum=1&q=lindawie+format+file&_done=%2Fgroup%2Fmicrosoft.public.sqlserver.tools%2Fbrowse_frm%2Fthread%2Ff1ee12cba3079189%2Fef9094123901fe26%3Ftvc%3D1%26q%3Dlindawie%2Bformat%2Bfile%26#doc_fa5708ca51d967a6

    Format file details & design: http://msdn.microsoft.com/en-us/library/aa173859%28SQL.80%29.aspx

    Generally I can suggest these links to get you know about BCP problems and solutions: http://groups.google.co.uk/groups?q=lindawie+format+file

    Best regards

提交回复
热议问题