Before we can retrieve any information from the server we have to create a SMO Server object:
# Check if the instance object is already initiated
if($server -eq $null)
{
try{
$server = New-Object ('Microsoft.SqlServer.Management.Smo.Server') $inst
}
catch [Exception]
{
Write-Host "$_.Exception.GetType().FullName, $_.Exception.Message" -ForegroundColor Red
}
}
Before we can retrieve any information from the server we have to create a SMO Server object:
# Check if the instance object is already initiated
if($server -eq $null)
{
try{
$server = New-Object ('Microsoft.SqlServer.Management.Smo.Server') $inst
}
catch [Exception]
{
Write-Host "$_.Exception.GetType().FullName, $_.Exception.Message" -ForegroundColor Red
}
}
status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |