Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Controlling SQL Server Replication using Powershell

$
0
0

Hi,

I have a Powershell script to refresh the databases

My requirement: 

I have a database which has replication in it. I used powershell to generate replication scripts and refreshes the database with another backup copy. After refreshing, I need to start the snapshot agent. 

How do I start the snapshot agent after refresh using powershell ?

Is it possible to monitor the replication synchronization using powershell ?

My ultimate goal is not to use Management studio, so that I can automate the nightly refresh process using powershell itself. 

Please advise. 


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>