→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
‎05-22-2013 06:33 AM
‎05-24-2013 10:00 PM
‎05-24-2013 12:39 PM
USE master;
GO
ALTER DATABASE lansweeperdb SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE lansweeperdb SET OFFLINE;
GO
-- Physically move the file to a new location.
-- In the following statement, modify the path specified in FILENAME to
-- the new location of the file on your server.
ALTER DATABASE lansweeperdb MODIFY FILE ( NAME = logical_filename, FILENAME = 'Path_to_the_lansweeperdb_file.mdf' );
ALTER DATABASE lansweeperdb MODIFY FILE ( NAME = logical_logfilename, FILENAME = 'Path_to_the_lansweeperdb_logfile.LDF' );
GO
ALTER DATABASE lansweeperdb SET ONLINE;
ALTER DATABASE lansweeperdb SET MULTI_USER;
GO
--Verify the new location.
SELECT name, physical_name AS CurrentLocation, state_desc
FROM sys.master_files
WHERE database_id = DB_ID(N'lansweeperdb');
‎05-23-2013 06:25 PM
‎05-23-2013 10:35 AM
‎05-22-2013 11:50 PM
‎05-22-2013 06:52 PM
‎05-22-2013 06:47 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now