SELECT '<ext:TextBox ID="R'
+REPLICATE('0',3-len(convert(varchar(5), number)))+convert(varchar(5), number)
+'" runat="server" /> '
from MASTER..spt_values
WHERE TYPE='P' order by number
SELECT '<ext:TextBox ID="R'
+REPLICATE('0',3-len(convert(varchar(5), number)))+convert(varchar(5), number)
+'" runat="server" /> '
from MASTER..spt_values
WHERE TYPE='P' order by number