Is there any limitation with tables that contain hierarchyid columns? Does it limit any of the functionality like partitioning etc? I can't seem to find anything that says there is, but wanted to check with some of the more experienced users to see if I am looking over something.

Thanks,

S

有帮助吗?

解决方案

There is no built-in way to partition hierarchyid column values. If you try to execute something like the bellow query then you will get error "The type 'hierarchyid' is not valid for this operation"

CREATE PARTITION FUNCTION MyPartitionRange (hierarchyid) AS RANGE 
    LEFT FOR VALUES ('/20140101/','/20150101/','/20160101/')  
GO
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top