• I am really sorry for the delay.

    Environment is... everyday a set of databases are created(sales business). i.e. at the end of the day I have to delete these databases(ofcourse after saving to other disc) For that I am using the above mentioned script. Apart from this, I have to update these databases in another database name"DateAgain".

    I apologize for the confusion. This is the new task given to me. And I am completely confused from my task point of view.