Reputation: 684
While trying to create an XML result using FOR XML PATH
in T-SQL (SQL Server 2008) I stumbled across this error:
The identifier that starts with ... is too long. maximum length is 128
The line it errors on is pretty deep and more than 128 characters long:
GlobalTradeItemInformation/tradingPartnerNeutralTradeItemInformation/cataloguePrice/tradeItemPrice/priceBracket/@rangeUnitOfMeasure'
Besides using a subselect with another FOR XML
statement in it, what are the options to resolve this? For example, is this a setting in SQL Server which can be changed? Any other workarounds?
Upvotes: 0
Views: 686