Below SQL helps you to shrink a DB grown due to truncating of records from tables regularly:
USE DemoDB;
DBCC SHRINKFILE ('DemoDB_log',0,truncateonly)
USE DemoDB;
DBCC SHRINKFILE ('DemoDB_log',0,truncateonly)
This blog contains posts related to data warehouse. All posts are used in my real time project and can be used as reusable codes and helpful to BI developers.
No comments:
Post a Comment