Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个固定长度的文本文件,除了一些行提前结束,带有回车/换行符。我正在使用 .fmt 文件。
问:我如何告诉 SQL Server 对下落不明的字段使用空字符串?
我可能应该要求我的客户填充他的文本文件,但是使用提前终止的行来处理它会更容易。
在进行批量插入之前,您应该编写一个预处理器来调节文本文件。