I am trying to write T-SQL script that woul do:
1. backup all user defined databases
2. shrink transaction log for each user defined database
The script does give me lots of compile time error due to syntax errors and others.
I have attached a script herewith and your advice is highly appreciated.
Thanks in advance.