Click here to Skip to main content
15,883,911 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hi Team,
Can you please let me know how to export huge data from sql server to .txt file using C#.net dynamically..
Ex:If we are passing server details and database name then we want to export data from all table to respective text file...


Thanks
Venkat M.
Posted
Comments
F-ES Sitecore 3-Sep-15 5:29am    
Google "sql server save table data to file" and come back and ask if you have a specific question about your chosen implementation.

1 solution

Use SQL Server Import and export wizard. Follow below link.


http://blog.winhost.com/exporting-sql-server-data-with-import-and-export-wizard/[^]
 
Share this answer
 
Comments
Maciej Los 3-Sep-15 5:44am    
5ed!
venkatgopal.mandada 3-Sep-15 9:22am    
Thanks for your answer.
I have to export data from sql server to flat file not statically using sql server..I have to do it dynamically by pasing server name and database name it self.

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