how to export data from sql server to file code example Example: how to download data with sql select * from data;