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

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -