SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Environment refresh...Best practice


Environment refresh...Best practice

Author
Message
Vets5
Vets5
SSC-Addicted
SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)

Group: General Forum Members
Points: 444 Visits: 215
Hi,

I have a question around data refresh between PAAS instances.

We currently run a couple of different "Environments" for a few of PAAS SQL databases. Pretty standard development process I would imagine: DEV, UAT and Production. I want to be able to refresh database downward periodically from Production to UAT/Dev. Currently I'm using bacpac's but its very time consuming. I'm just wondering if any other have similar experiences with this? We use a IAAS box in Azure as the location for the bacpac and do all the work from within that server as it has connectivity to all environments.

Our DB's are all S3 at present.

Any one have any thoughts on other methods? Possibly the copy operation from the portal or the migration tool?

Open to suggestions Smile

Many thanks in advance for any help.

Vets
Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (297K reputation)SSC Guru (297K reputation)SSC Guru (297K reputation)SSC Guru (297K reputation)SSC Guru (297K reputation)SSC Guru (297K reputation)SSC Guru (297K reputation)SSC Guru (297K reputation)

Group: General Forum Members
Points: 297805 Visits: 33922
I'd recommend using Powershell to run the copy database command. This puts the work internally at Microsoft which should be a lot faster than exporting a BACPAC and then reimporting it. However you'll still need to clean the data prior to releasing it to non-production environments otherwise you're likely to be in violation of the GDPR and other stuff.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
Vets5
Vets5
SSC-Addicted
SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)SSC-Addicted (444 reputation)

Group: General Forum Members
Points: 444 Visits: 215
Thank you.

I had the Portal admin copy the DB manually and it was infinitely quicker. Will be creating a PowerShell script to automate now.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search