USE [master]GOALTER DATABASE [Base] SET RECOVERY SIMPLE WITH NO_WAITGOALTER DATABASE [Base] SET RECOVERY SIMPLEGO
lundi 28 septembre 2009
Changement du mode de récupération d'une base Sql Server
vendredi 14 août 2009
Utiliser Google Diagnostic
javascript: ( function(){ location.href='http://www.google.com/safebrowsing/diagnostic?site='+encodeURIComponent(window.location.href) })()
javascript: ( function(){ location.href='http://translate.google.fr/translate?u='+encodeURIComponent(window.location.href) })()
jeudi 13 août 2009
Date Système et Powershell
Depuis combien de temps l'odinateur est-il démarré ?
$os = Get-WmiObject -Class Win32_OperatingSystem
(get-date) - $os.ConvertToDateTime($os.LastBootUpTime)
http://msmvps.com/blogs/richardsiddaway/archive/2009/08/13/system-up-time.aspx
...et date de démarrage
$operatingSystem = Get-WmiObject Win32_OperatingSystem
[Management.ManagementDateTimeConverter]::ToDateTime($operatingSystem.LastBootUpTime)
mercredi 5 août 2009
astuce Ultraedit pour insérer un séparateur entre chaque lettre d'un texte
En l'occurence ici, le texte azerty deviendrait a;z;e;r;t;y;vendredi 3 juillet 2009
Booster le démarrage de Powershell v1
Update-gac.ps1
Set-Alias ngen (Join-Path ([System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()) ngen.exe)
[AppDomain]::CurrentDomain.GetAssemblies() |
sort {Split-path $_.location -leaf} |
%{
$Name = (Split-Path $_.location -leaf)
if ([System.Runtime.InteropServices.RuntimeEnvironment]::FromGlobalAccessCache($_))
{
Write-Host "Already GACed: $Name"
}else
{
Write-Host -ForegroundColor Yellow "NGENing : $Name"
ngen $_.location | %{"`t$_"}
}
}
