Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
vincible
Starting Member
6 Posts |
Posted - 2010-05-12 : 23:21:18
|
| Need an urgent help to add Header and Trailer in the Sql extract using T-Sql. The format should be :1)Header: 999999999+Filename+CurrentDate2)Detailed Records3)Trailer :99999999+No.of Records in the extract.Please help !!!!Thanks,Nitin |
|
|
stepson
Aged Yak Warrior
545 Posts |
Posted - 2010-05-13 : 01:38:20
|
| you can use Union all1 select ... 999999999+Filename+CurrentDateunion all2 detailed Recordsunion all3.... |
 |
|
|
vincible
Starting Member
6 Posts |
Posted - 2010-05-13 : 01:58:05
|
| Thanks for your Reply!!!For union all there should be equal number of columns .I think in this case it will not work. |
 |
|
|
|
|
|