If you ever run in a situation like you have only MBs of space left on production SQL servers and your transaction logs are growing bigger and bigger and you want to claim disk space immediately then you might need to run following command Shrinking SQL 2000, 2005 Databases
Hi, To shrink the data base You have to use two commands 1. DBBC SHIRNKDATABASE command 2. DBCC Shrink File command Regards Kolla Sanjeeva Rao . Try some online tests at http://www.wiziq.com/online-tests/9120-sql-server-interview
You can directly from SSMS shrink the database. With SSMS you have a good overview and it is easier as you do not need to use commands.