Is it possible to create an indexed view from Xml Data in Sql Server 2008?

后端 未结 2 1491
你的背包
你的背包 2021-01-27 17:03

I see from the 2005 documentation that you cannot create an indexed view from an Xml column.

Is this possible in 2008 or 2008R2? I can\'t find any documentation saying t

2条回答
  •  粉色の甜心
    2021-01-27 17:33

    I don't believe this is possible. Without a better explanation of what you are trying to do, one suggestion I can offer is to pull the XML apart before insert (perhaps using an instead of trigger, or doing this shredding at the application layer) and storing the part(s) you want to use for the indexed view in separate non-XML columns.

提交回复
热议问题