• Thanks David for the reply.

    I am not using reporting services.

    Basically i am creating pivot of my data using TSQL and trying to dump the data into flat file using BCP.

    so here i am not able to fetch column headers

    Regards,

    Deepika