-- DB log 축소
USE [DataBase];
ALTER DATABASE [DataBase] SET RECOVERY SIMPLE;
-- 로그파일을 10MB로 축소
DBCC SHRINKFILE ([DataBase_Log], 10);
ALTER DATABASE [DataBase]
SET RECOVERY FULL;
-- 로그 파일을 지정한 대상 크기로 축소
USE AdventureWorks2012;
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE AdventureWorks2012
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (AdventureWorks2012_Log, 1);
GO
-- Reset the database recovery model.
ALTER DATABASE AdventureWorks2012
SET RECOVERY FULL;
GO
-- update select 로 json data 변경하기
UPDATE AA SET
AA.컬럼1 = JSON_MODIFY(BB.컬럼1,'$.must.title_inner',JSON_VALUE(BB.컬럼1, '$.must.title'))
from Table01 AS AA, Table01 AS BB
where BB.key = AA.KEY