I would like to set 00000000-0000-0000-0000-000000000000 as default value for a uniqueidentifier column. But I get the following error Error validating the default for column 'MyID'. :(
create table #t
(
u uniqueidentifier default ('00000000-0000-0000-0000-000000000000')
)
works for me. Are you missing single quote marks around the literal?
This would be unusual though as generally these columns contain unique values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With