Reporting
We'd like to do some simple SSRS reports on what images and clones are available/in use so other members of IT can see usage. I am able to pull data from the SQLCLone_Config database but am not able to piece it all together as target instances for clones doesn't seem to be recorded in the database along with some other details.
so the questions are..
will you be supporting the ability to put together reports outside SQL Clone's console for us to use?
Is there a way to get the target instance name from the config database to show where Clones have been created?
Thanks
so the questions are..
will you be supporting the ability to put together reports outside SQL Clone's console for us to use?
Is there a way to get the target instance name from the config database to show where Clones have been created?
Thanks
Comments
We don't commit to a stable schema in our internal configuration database, but would using PowerShell to query the clones on each instance work for you? A script like this would print out a list of clones on each instance that SQL Clone knows about:
If that doesn't work for you, let us know and we can explore it some more.
SELECT
sl.Server AS ComputerName
,c.Name AS CloneName
,c.CreatedBy
,i.FriendlyName AS ImageName
,CAST(RIGHT(i.FriendlyName, 19) AS DATE) AS ImageDate
FROM dbo.Clones AS c
INNER JOIN dbo.Images AS i
ON c.ParentImageId = i.Id
INNER JOIN dbo.SourceLocations AS sl
ON c.LocationId = sl.Id
WHERE c.DeletedOn IS NULL
ORDER BY sl.Server
,ImageDate
,c.Name
We name our images on a special format and include the date in the image name
But I would recommend to use Powershell instead.