Hello,
I have a table: Task, and another TaskHistory
1 Task -> Many Task Histories
TaskHistory has a field named 'Comment'.
I would like to from SQL return a string of all of the Task History Comments for whatever TaskId I pass in.
Example: GetTaskHistory(@TaskId)
Returns: 'Comment: some comment \r\n Comment: another comment \r\n\ Comment: yet another'
I am wondering if returning this from SQL would be faster than a recordset that I loop through in my application to build a string.
Is this possible?
Thank you!