About 746,000 results
Open links in new tab
  1. SQL Server Move Database Files Step By Step

    Jan 13, 2025 · Learn how to move the data and log file for a SQL Server database to a different location on disk in this step by step tip.

  2. Move database files - SQL Server | Microsoft Learn

    Sep 19, 2024 · In SQL Server, you can move system and user databases by specifying the new file location in the FILENAME clause of the ALTER DATABASE statement. Data, log, and full …

  3. Moving SQL Server Log Files to a New Location - Finchett.com

    Dec 8, 2023 · For production databases, perform the log file move during off-peak hours to minimize any impact on system performance. By following these methods, you can effectively …

  4. sql server - Move log file without taking database offline - Database

    May 6, 2014 · I need to move a database log file to a new partition without taking the database offline. The normal way of doing this would be to detach the DB, move the log file then …

  5. How to Move SQL Server Database Files to a New Location

    Jul 12, 2025 · Learn how to move SQL Server database files to a new location. This article discusses the step-by-step process of relocating user database files for performance and …

  6. Move All Your SQL Database and Log Files in Bulk

    Apr 15, 2020 · You’ve got a SQL Server with a few hundred databases on it (to be honest it doesn’t even need to be quite that many) and you need to move all the data and log files to a …

  7. How to move SQL server database files step by step - dbalyfe

    In this example, we are going to move data/log files from C: drive to D: drive. Solution: Step1: First ensure that nothing is being run on that specific database before we start. Step2: Identify …

  8. Best way to move the log file to a different drive

    Apr 22, 2011 · If you just want to move one database there is no reason to take down the whole SQL instance to do it. The detach\attach method is the best method if you just need to move it …

  9. How to Move Log File or MDF File in SQL Server? - SQL Authority …

    Jan 13, 2019 · Let us see how we can move SQL Server MDF file (data file) or LDF file (log file) to a different drive. In this example, we will see how we can move the log file from one drive to …

  10. sql- move log file to another drive - Stack Overflow

    Jan 15, 2019 · Since you restored from backup, you can add the MOVE command to your restore command to move the log file to a new drive during the restore. In order to keep your log file …