November 22, 2012 at 7:31 am
Can anyone help please?
Can I use nvarchar(max) when creating a unique constraint on a column and if not (which I suspect) why not??
Cheers.
email: info@weekendwebdesign.co.uk
Personal Website: http://markallen.co.uk/
Business Website: https://www.weekendwebdesign.co.uk
November 22, 2012 at 7:46 am
Why do you want to do this?
You can't because of eg. limitations of internal structures of DB
November 22, 2012 at 8:09 am
Done a bit more digging and come up with an answer: "the maximum size for a column that is included in a unique constraint is NVARCHAR(450) or 900 bytes."
That makes sense now! The question actually came up as part of a mock paper I was given to prep for my MS 70-433 exam (DB Development) and I just needed to understand the logic behind it.
Thanks though.
email: info@weekendwebdesign.co.uk
Personal Website: http://markallen.co.uk/
Business Website: https://www.weekendwebdesign.co.uk
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply