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.
sqlbulkcopy関数はローカル環境では正常に機能しますが、IISに展開すると、67Kの奇数行から17837のみがインポートされます。誰かがこの問題を引き起こす可能性があることを知っていますか?
実際、問題は Excel 接続文字列にあり、最後に「IMEX=1」がありませんでした。正しい接続文字列は、Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\uploaded.xlsx;Extended Properties='Excel 12.0 Xml;HDR=YES;IMEX=1'" です。