Archiv für den Monat April 2012

Logging issue

  The following table lists index operations and the type of logging available in each database recovery model for those operations. These recovery models are supported for both online and offline index operations.   Index operation Full Bulk-logged Simple ALTER INDEX REORGANIZE Fully logged Fully logged Fully logged ALTER INDEX REBUILD Fully logged Minimally logged [...]

Weiterlesen

create database snapshot with multiple filegroups/files

I found this script to create a database snapshot with multiple filegroups/fils, very usefully!  many thx to Ravikanth     $computerName = "YOURDBINSTANCE" $dbName = "YOURDB" $snapshotName = "YOURSNAPSHOTNAME" #Load all SQL necesssary assemblies #this is a common section in all my SQL scripts [Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMo") | Out-Null [Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMoExtended") | Out-Null [Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMoEnum") | Out-Null [Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.ConnectionInfo") | [...]

Weiterlesen