C
coolCoder
Hi All,
I have a tricky situation here. I want that the column
headers of a query result should contain some dynamic information ( ex,
date ).
If my query output is something like this --
SrNo Column1 Column2
1 ABC 12
2 PQR 6
3 XYZ 23
I want to append suppose getdate() in the column headers. Like
this --
SrNo Column1 On 10/16/2006 Column2
1 ABC 12
2 PQR 6
3 XYZ 23
Note that Column1 is changed to Column1 On 10/16/2006. This
appended date will be dynamic. It will be stored in a variable. For
your information this query will be a part of a stored procedure.
Can you suggest a way for the above problem ?
I have a tricky situation here. I want that the column
headers of a query result should contain some dynamic information ( ex,
date ).
If my query output is something like this --
SrNo Column1 Column2
1 ABC 12
2 PQR 6
3 XYZ 23
I want to append suppose getdate() in the column headers. Like
this --
SrNo Column1 On 10/16/2006 Column2
1 ABC 12
2 PQR 6
3 XYZ 23
Note that Column1 is changed to Column1 On 10/16/2006. This
appended date will be dynamic. It will be stored in a variable. For
your information this query will be a part of a stored procedure.
Can you suggest a way for the above problem ?