Professional Documents
Culture Documents
DBCC Shrinkdatabase
DBCC Shrinkdatabase
integer set @counter=2000 while @counter>0 begin insert into dropme values('1') set @counter=@counter-1 end --observe the database size step3: select file_id,name,physical_name,size from sys.database_files; --observe the database size step4: drop table dropme --observe the database size step5: dbcc shrinkdatabase(codebuilder,0) select file_id,name,physical_name,size from sys.database_files; --observe the database size