We are trying to shrink the log file using the below SQL Command.
ALTER DATABASE [SharePoint_Config] SET RECOVERY SIMPLE WITH NO_WAIT
DBCC SHRINKFILE (N'SharePoint_Config_log' , 0, TRUNCATEONLY)
ALTER DATABASE [SharePoint_Config] SET RECOVERY FULL WITH NO_WAIT
Gettng the below Error Message. Is there any other method ?
Msg 1468, Level 16, State 2, Line 1
The operation cannot be performed on database "SharePoint_Config" because it is involved in a database mirroring session or an availability group. Some operations are not allowed on a database that is participating in a database mirroring session or in an availability group.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.