saving SP output to CSV without using xp_cmdshell

  • Hi All

    I need to write the output of a SP directly to a csv file. Doing so with xp_cmdshell is easy but I need to get around the security issues that come with xp_cmdshell. Does anyone have any ideas???

  • Using xp_cmdshell to issue SQLCMD, BCP or OSQL is the right way to go but I guess you wouldn't get the required privileges to do that.

    Other alternatives could be....

    1. OPENROWSET

    2. linked servers

    3. OLE Automation Objects

    4. CLR Assemblies

    --Ramesh


  • SSIS?


    N 56°04'39.16"
    E 12°55'05.25"

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply