Domanda

  1. Ho fatto un backup di un database di SQL Server in esecuzione su SQL Server 2008.
  2. Ho ripristinato che il backup in un 2012 di SQL Server.
  3. Ho impostato il livello di compatibilità nell'istanza restaurato per SQL Server 2012 (110).

Cosa fare per il database?

lo fa, per esempio,

  1. procedure causano stored da esaminare eventuali incompatibilità
  2. causare eventuali aggiornamenti di tutte le pagine di dati nel database
  3. aggiornamenti motivo di per datapages come si accede in futuro
  4. errori Causa in futuro se vengono eseguite le stored procedure o le visualizzazioni che l'uso incompatibile la sintassi

Dove nei libri on line, o altrove, posso trovare maggiori dettagli?

È stato utile?

Soluzione

Compatibility level simply changes the language syntax that is supported by the SQL Statements. This will cause all the execution plans to be expired and force them to be recompiled. It has nothing to do with the data storage engine or the way that the data is written to the disk.

Once a database is attached to a SQL 2012 instance, it is in the SQL 2012 storage format and can't be moved back to an older version of SQL (no matter what setting the compatibility level is set to).

The link provided by @Shark (http://msdn.microsoft.com/en-us/library/bb510680%28v=sql.110%29.aspx) in the comments provides some additional reading on the subject.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a dba.stackexchange
scroll top