database - Understanding COMPATIBILITY_LEVEL in SQL Server -


i understood setting database compatibility_level prior native 1 prevented features being used. doesn't seem case. witness following sql script:

create database foo go use foo go alter database foo set compatibility_level = 80 go  create table bar (     id uniqueidentifier not null,     testnvcmax nvarchar (max) not null, -- arrived in sql 2005     testdatetime2 datetime2 (7) not null -- arrived in sql 2008 ) go 

but table creates - ideas? have thought kind of error message or warning have been appropriate

here can read differences between compatibility level 80, 90 , 100. alter database compatibility level

apparently new data types not affected. think compatibility level there make sql server "behave" older version, not prevent doing new fancy stuff.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -