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.
我找到了解决方案,我需要 CODEPAGE = 1252在 WITH 子句中指定。代码最终是这样的。
CODEPAGE = 1252
EXEC ('BULK INSERT #TMPP FROM ''' + @PATH + ''' WITH (FIELDTERMINATOR = ''|'', FIRSTROW = 1, ROWTERMINATOR = ''\n'', KEEPNULLS, CODEPAGE = 1252);');
我希望你会发现它在未来很有用。