What is the new "BCP / xp_cmdshell"? for bulk output to text file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yarbrough40
    Contributor
    • Jun 2009
    • 320

    What is the new "BCP / xp_cmdshell"? for bulk output to text file?

    Gang, I am currently outputting data into text files using BCP and "exec xp_cmdshell". The other day a peer of mine saw my code and said that this was 'ancient technology'. Funny thing is, he didn't bother to tell me what I should be using instead. I know I could probably be using SSIS but for this specific purpose I wanted to keep it within my TSQL code.

    Can anyone tell me what the latest and greatest method is for outputting directly to text files?... I'd like to stay current with the rest of the world.
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    He could be talking about SSIS. I still use bcp. It's fast and simple. It hasn't failed me so far...

    Good Luck!!!


    ~~ CK

    Comment

    Working...