combinational index with XML fields

  • is there a way to create a combinational index with regular field in the table and an element in the XML?

    For ex:

    CREATE TABLE Employee (EmpId INT, EmpXml XML)

    INSERT INTO Employee(EmpId, EmpXml) VALUES

    (1,'<Employee><FirstName>John</FirstName><LastName>Doe</LastName></Employee>')

    Is there a way to index EmpId, FirstName and LastName?

    thanks

  • I am curious to know too

    Would guess NO though

    Even if you create a view that XQuery the elements as a column

    I don't know if you can SCHEMABIND it and create a clustered index on it, but you might be able to create a NONCLUSTERED index on it

    Why is there a need to index on particular elements in the XML?

    SQLServerNewbieMCITP: Database Administrator SQL Server 2005

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply