Hello,
I am trying to load a database. I have a big SQL file of 1.9 GB and it contains 10 million inserts like 'insert into sometable values (1,2,3)'
I tried it using the sqlcmd -i but that is slow. So I switched to SSIS. I created a new package. Added a dataflow to it.
In that dataflow I added a flat file source and pointed to the right file. Specified only 1 column. Did a test run, Flat file source read all the lines in 30 seconds.
Then I added a oledb command. the sql text is easy 'select getdate()' '. At this point it took 12 minutes to execute ten million times select getdate().
Now I need to map the row to execute the insert statement. First try to changing the sqlcommand to ? (question mark). On the advanced editor, I added a column to the external columns on the ole db command input. Designer was happy but execution failed with"
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Syntax error, permission violation, or other nonspecific error". "
Then I switched back to EXECUTE sp_executesql ? no luck
Any ideas ?
Constantijn