When Microsoft SQL Server: Desktop Edition creates new databases, it places them in its default data location. By default, this is C:\Program Files\Microsoft SQL
Server\MSSQL$InstanceName\Data. (InstanceName is the name of your MSDE instance; for databases associated with Laserfiche, this will generally be Laserfiche.) MSDE will
place both the main and expansion
databases in this location. If you move your MSDE database to another location, you may encounter problems, since MSDE will still create new expansion
databases in the original, default location. This article describes the method for changing the default database location so that new expansion databases will be created in the new
location.
There are two methods of changing the default data location:
- Use Enterprise Manager
- Manually edit the registry
To change the default data location for MSDE using Enterprise Manager
- Open Enterprise Manager.
- Expand Microsoft SQL Servers.
- Expand SQL Server Group.
- Select your SQL Server.
- From the Action menu, select Properties.
- Select the Database Settings tab.
- In the New database default location section, type the new location into the Default data directory and Default log directory options.
- Click OK.
To change the default data location for MSDE by modifying the registry
- From the Start menu, select Run.
- Type the following and press ENTER:
regedt32
- Expand HKEY_LOCAL_MACHINE.
- Expand SOFTWARE.
- Expand Microsoft.
- Expand Microsoft SQL Server.
- Expand the MSDE instance associated with Laserfiche. In most cases, this will be LASERFICHE; it may vary if you installed Laserfiche with an instance of MSDE that has a different
name.
- Expand MSSQLServer.
- From the Edit menu, select New and then String value.
- Name the new string "DefaultData."
- From the Edit menu, select Modify.
- Set the string's value to the location at which you want MSDE to create new databases.
- From the Edit menu, select New and then String value.
- Name the new string "DefaultLog."
- From the Edit menu, select Modify.
- Set the string's value to the location at which you want MSDE to create the transaction logs for new databases.
- Restart your MSDE service:
- Click Start, navigate to Settings, Control Panel, Administrative Tools and select Services.
- Scroll down and select MSSQL$InstanceName, where InstanceName is the name of your MSDE instance (usually Laserfiche).
- From the Action menu, select Restart.