La casa della brugola informatica


il mondo che vorresti...o forse no...
Archivio Posts
Anno 2009

Anno 2008

Anno 2007

Anno 2006

SQL Server 2008: Impossibile Aggiungere Nuove Colonne

Magari a qualcuno sarà capitato e ci avrà tirato giù un sacco di imprecazione, senza trovare il perchè o come risolverlo. Parlo di un sistema di protezione di SQL Server 2008, che non permette di modificare le proprietà delle colonne già presenti (es. da VarChar a Int), oppure aggiungere delle colonne nuove tra due già esistenti. Nessun problema se vengono aggiunte delle colonne di seguito a quelle già esistenti.

L'errore, nello specifico, è questo: Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created

Questo comportamento, by design, è però disattivabile entrando nelle Opzioni di SQL Management Tools -> Tools -> Option, disattivando la voce Prevent saving changes that require table re-creation.

Una volta fatta questa modifica, sarà possibile tornare alla vita normale.

S

Categoria: Windows Server
sabato, 31 gen 2009 Ore. 10.31








Ora e Data
Statistiche
  • Views Home Page: 345.704
  • Views Posts: 816.535
  • Views Gallerie: 41.776
  • n° Posts: 334
  • n° Commenti: 283
Mappa
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003