Convert NULL to NOT NULL col on massive SQL Server table -
i got table hundreds of millions of rows. 1 column, lets call ref_id, defined as:
ref_id uniqueidentifier null references ref(id)
is there way make column not null , drop fk constraint?
i have managed delete entries null ref_id when do
alter table tbl alter column ref_id uniqueidentifier not null
then nothing happens after 8 hours (waiting while executing)\
thanks
Comments
Post a Comment