FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Database Blog: Using XML to Pass Arrays as Parameters
DATABASE
EXCEPTION::QUERY

A Blog About Database Products and Technology.

by Kevin Carlson
SELECT * FROM [Musings]

Database matters.

by Niklas Hemdal
September 01, 2006

Using XML to Pass Arrays as Parameters

One of the major issues when working within T-SQL is the lack of support for arrays. Enter XML, as this article discusses.

XML is one area inside SQL Server that I have not worked with to any great extent, however I do believe that it is a very powerful tool.

My alternative has been to pass in a comma delimited string and then use a user defined function to split that delimited string and place the results in a temporary table. The XML route seems to be a cleaner solution.

Posted by Douglas Reilly at 05:06 PM  Permalink




 
INFO-LINK