2
votes
1answer
925 views

Sql Server 2008 - Use OSQL utility to shrink files and then log result

I'm running batch processes via a batch file and I want SQL server to log the reslt when I execute my DBCC SHRINKFILE command from my batch file. Is there anyway to do this? Example: - Run.bat rem ...