環境:
- python-3.6
- pyodbc-4.0.23
- mssql サーバー 2014
cursor.executemany()
withを使用しcursor.fast_executemany = False
て MSSQL テーブルにデータを挿入すると、正常に動作しますが、遅すぎます (〜 100000 行を書き込むのに約 1 時間)。
私が使用するcursor.executemany()
とcursor.fast_executemany = True
、高速に動作し(〜100000行を書き込むのに約1m)、最初のケースとまったく同じデータを書き込みますが、プロセスは終了コード-1073741571(0xC00000FD)で終了し、エラー<built-in method executemany of pyodbc.Cursor object at 0x000001DE578AA210> returned a result with an error set
が発生します。
挿入のデータには次の構造があります。
例外なく結果を取得するにはどうすればよいですか?