I have one environment where we get number of changes everyday. It takes time to take backup of database and then apply the script. I am thinking to automate it as 1. SQL Script (Hot-fix) will put in Shared folder accessible by SQL server. 2. I am writing a SP which will have parameters. Database name, SQL script, HF number.SP will first take copy_only and compressed (all db's are 2008R2) backup of database. It will record SQL HF script from table into one row and it will apply that script to database using executesql. Problem I am facing here is I am not able to take that SQL script in row. Anybody have any smarter solution?
↧