Tuesday, 19 January 2021

SQL Server – rename ax database

 USE master

GO
ALTER DATABASE AxDB
SET SINGLE_USER
WITH ROLLBACK IMMEDIATE
GO
ALTER DATABASE AxDB
Modify Name = AxDB_Contoso
GO
ALTER DATABASE AxDB_Contoso
SET MULTI_USER
GO

No comments:

Post a Comment