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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -