I have a query that pulls data just like I want in SQL Server 2000. However I need to add a header and trailer row so that it appears as:
HEADER (contains various name information, but also a time stamp)
Detail1
Detail2
Detail3
Detail4
TRAILER (should just show the amount of detail records)
How should this be done in SQL Server 2000 to output to a text or some sort of .csv file? Thanks in advance!
HEADER (contains various name information, but also a time stamp)
Detail1
Detail2
Detail3
Detail4
TRAILER (should just show the amount of detail records)
How should this be done in SQL Server 2000 to output to a text or some sort of .csv file? Thanks in advance!