Say I'm writing a query:
INSERT INTO DestinationTable
(ColumnA, ColumnB, ColumnC, etc.)
SELECT FROM SourceTable
(ColumnA, ColumnB, ColumnC, etc.)
And my source table has 22 million rows.
SQL server fills my hard drive and errors.
Why can't SQL server process my query?
Should I use a cursor and insert a row at a time?
PS is SQL Express 2005, but I could try the full version.
UPDATE: I also want to mention that my source table occupies about 1 GB of memory when I look at it in the management studio. Still, is my 25 GB of free disk space somehow filling up? I also use two different databases Source.mdf -> Destination.mdf, I don't know if this matters.
source
share