You are on page 1of 1

step1: use codebuilder --observe the database size step2: create table dropme( col1 char(8000)) declare @counter

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

You might also like