Hi,
How do I create domains in MS SQL for data typing?
I wish to set up data typing / validation via Domain, and I can't seem to find how.
Googling throws up results that imply this isn't possible and all you can do is implement a check constraint, which sounds bizarre.
I certainly wouldn't want to have to create a CK in every table that uses a certain 'Domain', let alone the nightmare of maintaining a plethora of CK's across multiple tables.
I must be missing something obvious somewhere.
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
How do I create domains in MS SQL for data typing?
I wish to set up data typing / validation via Domain, and I can't seem to find how.
Googling throws up results that imply this isn't possible and all you can do is implement a check constraint, which sounds bizarre.
I certainly wouldn't want to have to create a CK in every table that uses a certain 'Domain', let alone the nightmare of maintaining a plethora of CK's across multiple tables.
I must be missing something obvious somewhere.
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music