select:
select top 2 name, crdate from sys.sysobjects where xtype = 'u' for xml raw('object')
产生与此类似的结果
<object name="table_name1" crdate="2010-05-03T09:34:08.150" />
<object name="table_name2" crdate="2011-04-17T11:19:18.157" />
有什么办法可以用变量(如@RowName)代替“对象”这个词?
提前致谢