Search code examples
sqlsql-serverdatabasesql-server-2005data-transfer

Moving data from one table to another in Sql Server 2005


I am moving around 10 million data from one table to another in SQL Server 2005. The Purpose of Data transfer is to Offline the old data.

After some time it throws an error Description: "The LOG FILE FOR DATABASE 'tempdb' IS FULL.".

My tempdb and templog is placed in a drive (other than C drive) which has around 200 GB free. Also my tempdb size in database is set to 25 GB.

As per my understanding I will have to increase the size of tempdb from 25 GB to 50 GB and set the log file Auto growth portion to "unrestricted file growth (MB)".

Please let me know other factors and I cannot experiment much as I am working on Production database so can you please let me know if they changes will have some other impact.

Thanks in Advance.


Solution

  • You know the solution. Seems you are just moving part of data to make your queries faster.

    I am agree with your solution

    As per my understanding I will have to increase the size of tempdb from 25 GB to 50 GB and set the log file Auto growth portion to "unrestricted file growth (MB)".

    Go ahead