How can we help you today? How can we help you today?
SeanPerkins

Activity overview

Latest activity by SeanPerkins

Since this was originally posted, I've been actively developing workarounds to the problem (mainly through the use of CSV files as reference documentation) and recently came across a similar situation regarding SQL Clone teams and permissions. There appear to be no SQL Clone PowerShell cmdlets that permit teams/permission management (e.g. creating/deleting a team, adding/removing a team assignment from a clone image or SQL Server location, etc.). Even more surprisingly, I found there is no way to determine team/permission assignments via PowerShell commands. There are no properties under the 'TeamsResource', 'ImageResource' or 'SqlServerInstanceResource' objects that indicate relationships between these objects. This is very similar to the deficiencies I previously noted for SQL Clone templates. As we attempt to automate clone refreshes, which include transferring templates and team-based permissions between images, it would be awesome if these relationships could be identified within PowerShell object properties and, especially in the case of team assignments, have some additional CLI options to manage them. Last I heard, my feedback was being discussed with the development team about a year ago: https://forum.red-gate.com/discussion/85836/perform-automatic-clone-database-refresh-with-templates I'm curious if there have been any updates since then that can be shared? Thanks. / comments
Since this was originally posted, I've been actively developing workarounds to the problem (mainly through the use of CSV files as reference documentation) and recently came across a similar situat...
0 votes
Yes, installing the latest update broke SQL Monitor for us too. The site is now offline and the logs are filled with errors such as this: 2020-04-08 20:34:40,953 [             45] ERROR RedGate.SqlMonitor.Common.Utilities.ErrorReporting.RaygunErrorReporter - System.ArgumentNullException: String reference not set to an instance of a String. Parameter name: s    at System.Text.Encoding.GetBytes(String s)    at RedGate.SqlMonitor.Common.Persistence.CredentialsStore.CredentialManager.AddOrUpdate(String key, CredentialManagerDetails detail)    at RedGate.SqlMonitor.Engine.Monitoring.Core.Services.ActiveDirectoryConfigRepository.GetServiceAccountForDomain(String domain)    at RedGate.SqlMonitor.Engine.Monitoring.Core.Services.ActiveDirectoryConfigRepository.<GetAllConfigs>b__10_0(ValueTuple`2 tuple)    at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()    at System.Linq.Buffer`1..ctor(IEnumerable`1 source)    at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)    at RedGate.SqlMonitor.Engine.Monitoring.Core.Services.ActiveDirectoryConfigRepository.GetAllConfigs()    at RedGate.SqlMonitor.Engine.Monitoring.Core.Services.ActiveDirectory.ActiveDirectoryService.get_FirstConfig()    at RedGate.SqlMonitor.Engine.Monitoring.Core.Services.ActiveDirectory.ActiveDirectoryConfigService.GetConfig()System.ArgumentNullException: String reference not set to an instance of a String. / comments
Yes, installing the latest update broke SQL Monitor for us too. The site is now offline and the logs are filled with errors such as this:2020-04-08 20:34:40,953 [             45] ERRORRedGate.SqlMo...
0 votes
Thanks for the response. We were hoping to avoid the idea of hardcoding clone-specific template script paths into our image/clone refresh scripts, but it sounds like that is our only option for now. We could better automate our clone refreshes if the 'CloneTemplateResource' object contained these properties (accessible using the 'Get-SqlCloneTemplate' cmdlet): Filename. The original filename(s) of the modification script(s). Even if a full path is not stored, it would be nice to access the filename itself (like the GUI can) so that we can maintain a script location and match the existing template scripts to files there during clone refreshes. SqlScript. The 'ModificationScript' objects associated with the template (whether it was originally imported from a file or passed as a string). Alternatively, a reference to 'ModificationScript' objects by ID that could be used with a 'Get-SqlCloneSqlScript' cmdlet to return a 'ModificationScript' object or the original script as a string value. These methods would allow the template script(s) to be captured as a variable and passed as a parameter during template creation for the new image. Either of these options would better allow an image to be updated regularly and have all its clones refreshed without requiring change review and script revisions prior to every clone's initial creation. I hope this feedback will assist you in further improving the SQL Clone product. Thanks again. / comments
Thanks for the response. We were hoping to avoid the idea of hardcoding clone-specific template script paths into our image/clone refresh scripts, but it sounds like that is our only option for now...
0 votes
Perform Automatic Clone Database Refresh with Templates?
We have the business requirement to automatically refresh our images/clones at regular intervals.An example was provided in the SQL Clone documentation to refresh all clone databases to use an upda...
2 followers 2 comments 0 votes
Perform Automatic Clone Database Refresh with Templates?
We have the business requirement to automatically refresh our images/clones at regular intervals.An example was provided in the SQL Clone documentation to refresh all clone databases to use an upda...
0 followers 0 comments 0 votes
Perform Automatic Clone Database Refresh with Templates?
We have the business requirement to automatically refresh our images/clones at regular intervals.An example was provided in the SQL Clone documentation to refresh all clone databases to use an upda...
3 followers 4 comments 0 votes