The name of the default instance can be “MSSQLSERVER” or be left out. To make sure the server object is created in the same way for both situation the following code will check the name and declare the target variable.
# Make up the target in case we have a default instance
if(($instance -eq '') -or (($instance).ToUpper() -eq 'MSSQLSERVER'))
{
$target = $server
}
else
{
$target = "$server\$instance"
}
The name of the default instance can be “MSSQLSERVER” or be left out. To make sure the server object is created in the same way for both situation the following code will check the name and declare the target variable.
# Make up the target in case we have a default instance
if(($instance -eq '') -or (($instance).ToUpper() -eq 'MSSQLSERVER'))
{
$target = $server
}
else
{
$target = "$server\$instance"
}
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 |