• Are you getting each row inone column or your table columns are getting splitted?

    Have you tried in xls file like @query_attachment_filename = 'bank.xls'.

    and you can findout the reason..colud be the sql table column name are with spaces in between

    Comments please....

    Srihari Nandamuri