Powershell, SMO and Database Files

Posted by dbaduck on SQL Blog See other posts from SQL Blog or by dbaduck
Published on Mon, 14 Feb 2011 20:08:00 GMT Indexed on 2011/02/14 23:31 UTC
Read the original article Hit count: 328

Filed under:
|
|
In response to some questions about renaming a physical file for a database, I have 2 versions of Powershell scripts that do this for you, including taking the database offline and then online to make the physical change match the meta-data. First, there is an article about this at http://msdn.microsoft.com/en-us/library/ms345483.aspx . This explains that you start by setting the database offline, then alter the database and modify the filename then set it back online. This particular article does...(read more)

© SQL Blog or respective owner

Related posts about Powershell SMO

Related posts about smo