by knuxel » Tue Oct 16, 2012 3:25 am
Thank you for your reply. It's definitely faster now, but with an error in another table:
I have to convert smallmoney to numeric (19, 2). The TOP 1999 rows are inserted successfully, but if I select the TOP 2000 rows, I get an overflow error typ numeric. It works, if I set the "BULK_INSERT=2000;" statement higher than the number of rows in the table (still with the Desktop Version), but it's slow again.
Table (1.7 Mio entries):
INT, tinyint, smallmoney
smallmoney converted to numeric (19, 2)
Error:
Fehler: 0xC0202009 bei Datenflusstask, PostgreSQL-DB 1 1 6 1 [328]: SSIS-Fehlercode 'DTS_E_OLEDBERROR'. OLE DB-Fehler. Fehlercode: 0x80004005.
Ein OLE DB-Datensatz ist verfügbar. Quelle: 'PostgreSQL Native Provider' HRESULT: 0x80004005 Beschreibung: 'FEHLER: Feldüberlauf bei Typ »numeric«
DETAIL: Ein Feld mit Präzision 3, Skala 0 muss beim Runden einen Betrag von weniger als 10^3 ergeben.
CONTEXT: COPY productstats, Zeile 1, Spalte ng: »4864«
Thanks for help.