SQL SERVER 2008 não permite alterações na tabela 1


Imagem: flickr do georgeparrilla

Imagem: flickr do georgeparrilla

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.

Comecei a utilizar o SQL Server 2008 hoje, em virtude de uma mudança de plano de hospedagem na Locaweb. Sofri um pouco para migrar a base antiga, principalmente por ter exagerado em um drop e ter apagado o banco inteiro.

Pois bem, migração efetuada, precisei alterar uma tabela e surgiu a mensagem acima. Me assustei, já pensou ter que recriar a tabela cada vez que fizer uma alteração?

Felizmente encontrei a solução rapidamente. Basta alterar uma configuração do SQL Server Managment Studio. No SQL Server Managment Studio, acesse Tools > Options e na aba Designer,  desmarque a opção “Prevent saving changes that require table re-creation”.