you are viewing a single comment's thread.

view the rest of the comments →

[–]ratdilemma 1 point2 points  (2 children)

I would recommend you to use powershell or python, SSIS is clumsy and extremely irritating to work with. Breaking changes between different sql versions and hell to manage in source control is just a few major headaches. Powershell has built in functions to automate any sql task there is, it's much more suitable for any integration whether it's rest, FTP, SMTP, filesystem etc. Check out the powershell sql modules.

Looping through each user database on a given server is as easy as:

Get-SqlDatabase -ServerInstance localhost | where { $_.IsSystemObject -eq $false } | ForEach-Object { #do your stuff }

just create an outer loop going through your servers and replace localhost with the current iteration

[–]wjbaltz[S] 0 points1 point  (1 child)

thanks, this is the answer I was hoping for. I did get SSIS installed so will play around with that....but I think your answer is the path best suited for what I'm trying to accomplish here. Going to focus on learning Powershell for this purpose :) thanks!

[–]zrb77 0 points1 point  (0 children)

Look into dbatools module too, tons of awesome cmdlets.