Tuesday, 26 March 2019
SQL Server : How to Apply Patch in AlwaysOn Availability Group Configuration
Wednesday, 6 March 2019
SQL Server : Reallocate SSISDB database file
Steps to move SISDB from default location or Reallocate SSISDB database files
use master
go
alter database ssisdb modify file (name=data, filename='L:\mpdbs001\sqlappdb\SSISDB.mdf', filegrowth=256MB)
alter database ssisdb modify file (name=log, filename='L:\mplog001\sqlapplog\SSISDB.ldf', filegrowth=512MB)
go
alter database ssisdb set offline with rollback immediate
go
Second, copy files to new location :
exec xp_cmdshell 'copy /Y L:\mpsys001\sqlsysdb\SSISDB.mdf L:\mpdbs001\sqlappdb\'
exec xp_cmdshell 'copy /Y L:\mpsys001\sqlsysdb\SSISDB.ldf L:\mplog001\sqlapplog\'
alter database ssisdb set online
go
Third, change database owner if required
use ssisdb
exec sp_changedbowner 'Domain\User'
go
-----------Back up Master Key for database SSISDB ---------
use SSISDB
go
BACKUP MASTER KEY TO FILE = 'L:\mpsys001\Keys\SSISDB_MasterKey' ENCRYPTION BY PASSWORD = 'Password';
Thanks
Subscribe to:
Posts (Atom)