Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: , +
hello friend I have downloaded a database from code plex site to my local machine in sql 2008 & I change the index of one attribute & tries to save that database but i got one error message box "error wear encountered during save process some database object ware not saved unable to modify table ,Cannot create Xml index without a clustered primary key.please help
Posted

1 solution

Changing the defined primary index creates this error. By default, computed columns derived from xml data types can be indexed either as a key or included nonkey column as long as the computed column data type is allowable as an index key column or nonkey column. You cannot create a primary XML index on a computed xml column. Itz better to recover the dropped index and run as it is.
 
Share this answer
 
Comments
maheshpardeshi 29-Aug-11 1:42am    
but I want to remove index & check the performance & then I want to apply index to another attribute.I have also try to change the "prevent changing table which re create the table" option by disabling it but got same error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900