Próbuję usunąć niezerowe ograniczenie w SQL Server 2008 bez utraty danych.
Próbuję usunąć niezerowe ograniczenie w SQL Server 2008 bez utraty danych.
Odpowiedzi:
ALTER TABLE YourTable ALTER COLUMN YourColumn columnType NULL
ALTER TABLE YourTable ALTER COLUMN YourColumn DROP NOT NULL
Usuń ograniczenie not nulldonull
ALTER TABLE 'test' CHANGE COLUMN 'testColumn' 'testColumn' datatype NULL;
ALTER TABLE tableName MODIFY columnName columnType NULL;