Sql-server – File MDF growth SQL Server 2008

sql-server-2008

I have SQL Server 2008, I have 20 GB free on HD when I try to insert row in any table my HD was full before finished.

I try to insert about 200,000 rows each row with around 100 columns.

The operation consumed only space in my mdf file but not in my log file.

My destination table is empty, before today I don't have problems with this process.

Why is this happening?

Best Answer

If the database is set to "simple" mode, then the transaction log is truncated after the transaction. Because you are only inserting 1000 records at a time, the transaction never needs to grow the entire amount.