I have a database table that has a non null column of type uniqueidentifier. This was put in place for use in the near future. But for now, I need to use some placeholder. Can I simply use:
00000000-0000-0000-0000-000000000000
for all the rows until a real guid is used when new rows are inserted in the future? Does SQL Server enforce uniqueness on this column?
SQL Server will enforce uniqueness, IF and only if you put a unique constraint or unique index on that field. Otherwise, SQL Server will only enforce that the value must be NOT NULL.