View Single Post
  #4 (permalink)  
Old November 1st, 2007, 07:34 AM
Jeff Moden Jeff Moden is offline
Friend of Wrox
Points: 1,536, Level: 15
Points: 1,536, Level: 15 Points: 1,536, Level: 15 Points: 1,536, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2006
Location: , MI, USA.
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts
Default

I just realized this is a 2k5 forum, not 2k... I don't know how to use SSIS...

BUT, I think 2k5 still has BCP and the equivelent to "xp_CmdShell" (although I'm pretty sure they call it something else). If you call BCP via a CmdShell call and use the QueryOut setting, you can even name the file you want to save to with a little dynamic SQL. See if you can find "BCP" in Books Online... make sure you read about all the different settings you can have. And, yes, it does have a couple of simple examples. It's a VERY powerful tool. The separator you're looking for is \t which means "tab".

--Jeff Moden
Reply With Quote