Summary
This article details how to specify where you want the SQL Server data and log files to be located.
Cause
The data and log files for your Laserfiche repository will be created in a default location set by Laserfiche. The Laserfiche user interface does not currently give you the option of specifying where you want to create the files.
Note: Laserfiche version 7 will allow you to specify where to create the SQL database data and log files.
Resolution
You can manually move the SQL database files to a desired location by taking the following steps:
To detach, move, and reattach the SQL database:
cmd
osql -E -S ComputerName\Laserfiche
Note: If you are using Laserfiche United (Standard\Enterprise), then you should only specify the name of the computer where the SQL server resides.
USE DatabaseName
GO
EXEC sp_helpfile
GO
USE master
GO
EXEC sp_detach_db 'DatabaseName'
GO
Note: The Laserfiche for Microsoft SQL Server service must be stopped. Otherwise, the database files will be in use and cannot be detached.
USE master
GO
EXEC sp_attach_db 'DatabaseName','DirectoryPath\MDF_filename.mdf','DirectoryPath\LDF_filename.ldf'
GO
Note: The database files are attached in Microsoft SQL Server. However, you will also have to update where Laserfiche is expecting the database to be. Use the Laserfiche Administration Console and reattach the Laserfiche repository.
More Information
1000511 Default Data and Log File Locations for newly created databases
224071 Moving SQL Server databases to a new location with Detach/Attach