Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I want to append output data from a query into an existing file, which command prompt tool will help me?



regards,
Posted
Comments
Maciej Los 11-Jun-12 17:05pm    
Not clear! Please be more specific, provide more details.
Use "Improve question" button.

1 solution

hi,

use bcp command for append data in command prompt


bcp work.dbo.tableA out cola.txt -S instance_name -U sa -T -c

bcp db.dbo.table_name out file_name -S sql instance_name username -T -c
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900