export database records sqlserver code example Example: how to download data with sql select * from data;