Philip Proplesch philipproplesch

View SQLServerRebuildIndexes.ps1
1 2 3 4 5 6 7 8 9
$serverName = ""
$userName = ""
$password = ""
$maxFragmentation = 10
 
$databases = @("Sitecore_Core", "Sitecore_Master", "Sitecore_Web")
 
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo")
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.ConnectionInfo")
View TheEndIsNear.cs
1 2 3 4 5 6 7 8 9 10
class Program
{
static void Main(string[] args)
{
typeof (DateTime)
.GetField("MaxValue")
.SetValue(DateTime.MaxValue, new DateTime(2012, 12, 21));
 
var endOfWorld = DateTime.MaxValue;
}
Something went wrong with that request. Please try again.