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
Post a Comment