Yeah both BCP and sqlcmd are reall fast and work well EXCEPT they both have a limit on the length of the arguments you can use at the command prompt. If not for that I would be done. I guess I am going to have to look at SSIS. All I need to do is pass a query and export the data from that query to a csv file in my user specific directory. Seems easy, hopefully it is in SSIS.
Jeremy -----Original Message----- From: Jim Wright [mailto:[EMAIL PROTECTED] Sent: Friday, April 07, 2006 7:36 AM To: CF-Talk Subject: Re: SQL 2005 and getiing data out On 4/6/06, Jeremy Bunton <[EMAIL PROTECTED]> wrote: > I need something I can run in a .bat file as it loads in a batch server. > These databases have about 20 million records and the files can be quite > large. CFFILE might time out, trying to write out a file with 80 fields and > 50,000 records. BCP would seem the way to go to me, as it is very fast. I haven't used it in 2005 to know if there are any differences. Maybe you could create a "temporary" view for the current user that you could pass to your bcp command. -- Jim Wright Wright Business Solutions [EMAIL PROTECTED] 919-417-2257 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237168 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

