Quantcast
Viewing all articles
Browse latest Browse all 989

Convert User Friendly Retention to DateTime value with PowerShell

In my SQL Server environment we backup our databases to local disk ... month #> [int]$Length = ($UserFriendlyRetention).Length $Value = ($UserFriendlyRetention).Substring(0,$Length-1) $Units = ($UserFriendlyRetention).Substring($Length-1,1) # Validate ...

Viewing all articles
Browse latest Browse all 989

Trending Articles