Getting bcp.exe to escape terminators

后端 未结 4 1921
轮回少年
轮回少年 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:12

    You can't have data containing tabs and newlines with tabs and newline separators. It makes no sense. Escaping wouldn't help, because a tab is a tab. We're not talking c# string handling here.

    What I'd do is use different terminators such as | and ||/n, or use a format file

提交回复
热议问题