Just a day ago I have received following email from Siddhi and I found it interesting so I am sharing with all of you.
DBCC SHRINKDATABASE (dbName)
DBCC SHRINKFILE (logicalLogFileName)
USE dbName
EXEC sp_helpfile
/* Shrink Whole AdventureWorks Database */
DBCC SHRINKDATABASE (AdventureWorks)
GO
/* Get the Logical File Name */
USE AdventureWorks
EXEC sp_helpfile
GO
/* Shrink MDF File of AdventureWorks Database */
DBCC SHRINKFILE (AdventureWorks_Data)
GO
