0

As far as I can tell the at keyword is considered 'standard' XQuery syntax.

for $a at $x in //Node/Details
return <node number="{$x}" />

For the T-SQL flavor of XQuery this produces the following error.

XQuery [query()]: The XQuery syntax 'at' is not supported.

How do you count the iterations in a T-SQL XQuery for-loop?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Red Taz
  • 4,159
  • 4
  • 38
  • 60
  • possible duplicate of [FLWOR in Sql server count number of hits](http://stackoverflow.com/questions/18716350/flwor-in-sql-server-count-number-of-hits) – Roman Pekar Sep 23 '14 at 10:32
  • @RomanPekar confirmed, asked and answered. However, the keywords used in that question aren't very google-able :) Do I delete this? – Red Taz Sep 23 '14 at 10:43
  • 1
    Just keep it, it will be closed as duplicate in some time, pointing to the other question. Still might help others having similar problems, but find your post instead. – Jens Erat Sep 23 '14 at 12:50

0 Answers0