How do I output a table to a txt file using tsql? I don't want to use DTS or SSIS in this instance.
BCP
bcp MyDb.MySchema.Mytable out myTable.dat -T -c
thats about all the really usefull options for exporting i think.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With