• Sarath Vellampalli (7/18/2011)


    Hi opc,

    I am using this code in SP and we need to append the data to same text file with loop.

    so please help me on this.

    I understand, but using ECHO with xp_CmdShell is pretty inflexible which is why myself and others have tried to guide you in a different direction. It may be possible, but maybe not. There are tons of examples on the web on how to use xp_CmdShell. Maybe try TYPE instead of ECHO? Good luck.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato