@misermice: The value() method takes the data type from __SQL Server__ as a second argument. So instead of string you should use varchar/nvarchar (with the length specified in arenthesis) and instead of integer use int.
The error about singleton appears because the value() method expects a single node pointed by XPath given as the first argument of the method. So probably this one will work:
SELECT BookDetails.value('(/root/
Main Topics
Browse All Topics





by: vinurajrPosted on 2009-09-10 at 21:04:54ID: 25306647
http://aspnet.15seconds.co m/issue/05 0803.htm