[SQL Server] Journal de transaction, déplacement de fichier
select name,physical_name
from sys.master_files
where database_id=DB_ID('MA_BASE')
alter database MA_BASE
set offline
go
alter database MA_BASE
modify file (name = MA_BASE_log,filename="P:\LOG\MA_BASE\MA_BASE.ldf")
go
-- Déplacer le fichier
alter database MA_BASE
set online
go