Hi everyone...
Is it possible to format the returned recordset/resultset in SQL. For example,
I've one store procedure/queries as follows:
SELECT DISTINCT TOP 3 mnid, headline FROM news
If I run this query in the Query Analyzer it will return the following resultset:
mnid headline
--------------------- ---------------------------------
123 xxxxxxxxxxxxxxxxxx
345 xxxxxxxxxerxxxxxxx
678 xxxxxxxxxxxxxxxxxxxxx
can I format above resultset into the following:
<news id="123" headline="xxxxxxxxxxxx">
<news id="345" headline="xxxxxxxxxxxxxxxxxxxxxxx">
<news id="678" headline="xxxxxxxxxxxxxxx">
Thank You
brdgs
Wai Chong