Copy Database Files While They are in Use with Hobocopy


Download a copy Hobocopy from GitHub:
https://github.com/candera/hobocopy/downloads
After download the zipped file, unzip it to a folder at your choice.

Use the following Powershell script to copy the database files that are in use.

Powershell to copy database files while they are in use
C:\bcp\Hobocopy.exe C:\MSSQL\Data c:\temp\hotcopied\ testdb*

You can attach these files to SQL Server instance to access the database.

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s