Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving to a file

Status
Not open for further replies.

mike718

Programmer
Jul 7, 2004
58
US
I have a trigger that is run everyday that updates a table. I would like to automatically save the contents of that table to a file. Is there anyway to write that into a script? Also when I save a file manually to a csv file I always get commas to seperate columns, is there any way that i can have that option turned off when saving??

Thanks

Mike
 
Check out BCP in Books Online. It is a command-line utility that will allow you to easily export the contents of a table to a text file. You also have some control over the format of the text file. Good luck!

--John [rainbow]
-----------------------------------
Behold! As a wild ass in the desert
go forth I to do my work.
--Gurnie Hallock (Dune)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top