Sorry but you would be better off posting on a forum for sql server, while mojoPortal may use a SQL database it is not a database management tool nor can it control or have any affect on how you manage your database, if you lost data by some data management task that is outside the scope of mojoPortal.
I would always backup a database before doing things like shrinking, then you could restore the backup and have no risk of data loss.