Created
May 29, 2025 18:44
-
-
Save MartinMiles/a743aebcbcf18e9794ed8aecbac6734d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- We attach two legacy databases into a locally-run XM Cloud instance: "CoreOld" and "Old" (which is master) | |
EXEC sys.sp_configure N'contained database authentication', N'1' | |
go | |
exec ('RECONFIGURE WITH OVERRIDE') | |
go | |
CREATE DATABASE [Sitecore.Old] | |
ON (FILENAME = 'C:\data\Sitecore.Old_Primary.mdf'), | |
(FILENAME = 'C:\data\Sitecore.Old_Primary.ldf') | |
FOR ATTACH; | |
CREATE DATABASE [Sitecore.CoreOld] | |
ON (FILENAME = 'C:\data\Sitecore.CoreOld_Primary.mdf'), | |
(FILENAME = 'C:\data\Sitecore.CoreOld_Primary.ldf') | |
FOR ATTACH; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment